<< back to sysax.com Product page

16.3. Passing Environmental variables

The following switch enables environmental variables to be created and passed to the program.

-set <environment variable>=<value>      create and set an environmental variable

Exhibit 16.3. Examples for using the switch for passing environmental variables

sysaxftp -script "run.fscr" -set PASSWORD="mypass" #create env variable PASSWORD and set it to mypass

sysaxftp -script "run.fscr" -set SERV_IP="" #pass env variable. Value can be extracted from the script using getenvvar