View Full Version : How to use variable set from terminal in TCL ?
April 1st, 2009, 01:12 PM
I have set one variable PROJECT_PATH.
So How can I use this variable in any TCL file ?
April 1st, 2009, 04:01 PM
I *assume* here, that you are talking about setting an environment variable - if so,
it will live in tcl's environment array.
From an interactive tclsh:
To get the entire contents of what tcl knows as the environment array:
Hope this answers your question?
April 2nd, 2009, 04:44 AM
Yes Your ans satisfies my need.
And regarding your second code
parry env I think It should be
April 2nd, 2009, 04:29 PM
Typo ... duh!:mad:
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.