To pass an argument to the CLI from an input file, you can use the Expand option. To do this, you create a file into which you enter the information you want to pass to the CLI. Each argument and its value must be listed on a separate line. Arguments must be listed in the order in which the command requires them. To pass these arguments to the command, call the command and make the exp: argument the first argument.
For example, here are two files (file1.txt and file2.txt) that can be used in conjunction with the exp: option:
file1.txt:
hdb.h.la -u [user] exp: file2.txt |
file2.txt:
-p [password] |
To execute them, type:
cr_cli -cmd exp:file1.txt |
The first file will call the second file and execute the command.