|
The online home of
the company bringing you quality HP hardware and software support |
| Using CI Variables in FTP Commands |
A
common question we are asked is why Command Interpreter (CI) variables
to not work as expected in batch jobs. As an example:
CI Variable substitution means the Command Interpreter will substitute the value of a variable when it executes the command. In this case, the value of the CI variable HPYYMMDD is expected to be substituted, causing the command to look like this "put FILE100 file100.20001002" The reason that the above hilighted line does not work correctly is because the CI is not responsible for executing the command. It is being used as direct input to the FTP program. For the CI to substitute a character into a command it must have execute the command. In this case, FTP is responsible for processing the command, not the CI. A simple workaround is to give the CI a chance to substitute the variable by creating an input file of the commands you want to execute, and then pipe those commands into the program you want to run. For this capability we turn to the ECHO command. The same job would look like this:
|
Send mail to
webmaster@beechglen.com with
questions or comments about this web site.
Copyright © 2006
Beechglen Development Inc.
Last modified:
01/20/06