Apple Qmaster 3 User Manual
Page 85

Description
Monitoring command option
Use to specify the job you want to monitor.
When you use the
-jobid
option, you must also specify the
-batchid
, in the form of the name that was given to the batch
when it was submitted. (The
-batchid
and
-jobid
are displayed
after a batch is submitted.)
If you do not use the
-jobid
option, all the jobs submitted to the
specified cluster are listed.
-jobid
-batchid
Use to specify the number of seconds before Batch Monitor can
quit when looking for a cluster. The default value is 0, which puts
no limit on the timeout and allows Batch Monitor to browse the
network for as long as it needs to find the cluster.
-timeout
Use to specify how frequently, in seconds, the job status should be
updated.
-query
Cancels the specified job or batch.
-kill -jobid
Displays information about supported options for
Batch Monitor
.
-help
Using Scripts to Run Apple Qmaster, Compressor, and
Batch Monitor
To simplify your use of the command line, you can add command-line friendly scripts to
/usr/bin. Each script sets an ENV variable for location and then executes the binary. Using
the following scripts would be useful if you frequently use the command line for
submissions or automated submissions. You do not need to specify the full path, and
you can add frequently used ENV variables and options to speed up the submission
process. To run Apple Qmaster, Compressor, or Batch Monitor, you can simply open up
a terminal and type
qmaster
,
compressor
, or
batchmonitor
.
Apple Qmaster Script Example
#!/bin/csh -f
#
# set env var, QMASTER_LOCATION if not set
#
if ${? QMASTER_LOCATION} == 0 then
pushd `dirname $0` >& /dev/null
setenv QMASTER_LOCATION /Applications/Apple\ Qmaster
popd >& /dev/null
endif
#
# launch qmaster
#
exec ${QMASTER_LOCATION}/Apple\ Qmaster.app/Contents/MacOS/Apple\ Qmaster
$argv:q
85
Chapter 7
Using the Command Line