Printer FriendlyEmail Article Link

Spirent TestCenter: How to access environmental variables from Tcl Interpreter or Tcl files ?

Environment/Versions
  • Tcl Interpreter
Answer
  • Use the below command to access required environmental variables from Tcl Interpreter of Tcl files

%puts $env(<name of the variable>)

Example:

%puts $env(USERPROFILE)

 


Product : Automation,Spirent TestCenter