N1 Grid Service Provisioning System 5.0 Command-Line Interface Reference Manual

Reading CLI Arguments From a File

To read a CLI argument from an input file, identify the input file by prefixing exp: to the file name. First, create a file that contains the information you want to pass to the CLI. Note that each argument must be listed on a separate line and must appear in the order required by the command.

Then, have the command get the arguments from the file.

For example, these files, file1.txt and file2.txt, can be used in conjunction with exp: to specify command arguments.

file1.txt contains the following:


hdb.h.la
-u
user-name
exp:file2.txt

file2.txt contains the following:


-p
password

To execute the command that is described by these files, type the following:


cr_cli -cmd exp:file1.txt