run_script

Reads and performs multiple commands from a text file.

Synopsis

run_script file name

Description

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.

Options and arguments

file name
The name of the file with commands. If no value is provided, the default query name is used.

Examples

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 

Feedback