decorative banner

Previous | Next               Table Of Contents > 9 Accessing system information > 9.1 Reading environmental variables

9.1 Reading environmental variables


The getenvvar command is used to access the values of environmental variables. The user variable receives the value of the specified environmental variable string. Refer to the section on command line script parameters for a method to create and set program specific environmental variables from the command line.

The syntax is

getenvvar <user variable>, <environment variable string>;

An example is

getenvvar ~os_variable, "OS"; #get the value of the environmental variable OS


Previous | Next