To read in data from a file, identify the file by prefixing file: to the file name.
For example, you might want to store the session ID of the session you have just started and use it later to authenticate commands. First, save the RPC-serialized representation of the session ID to a file called session.
cr_cli -cmd udb.login -u user-name -p password -o serialized > session |
Then, use the session ID in the session as input to another command.
cr_cli -cmd hdb.h.la -s file:session |