decorative banner

Previous | Next               Table Of Contents > 10 Command line script parameters > 10.3 Passing Environmental variables

10.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

 

Some examples are

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

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


Previous | Next