Reads a list of ClearQuest CLI (command line interface) commands from a text file and then performs them. The first command in the file must be the login command or if any subcommand is used it should contain the login credentials. The script is run in a single process invocation, so any login command done in the script persists for succeeding commands. The run_script command allows you to run a command sequence from the given file name. The CQTool supports ClearQuest CLI commands used in the scripts. Some modifications might be needed to your scripts for command syntax, but the functionality of the commands remain intact.
cqtool run_script filename
The commands in sample script file.
login -d MYDB -s SAMPL -u myname -p "" find_record "$argv[l]" -headline -state -owner