Command Reference Guide

Platform LSF Command Reference 205
-wa 'signal'
Specifies the job action to be taken before a job control action occurs.
A job warning action must be specified with a job action warning time in order for
job warning to take effect.
If
-wa is specified, LSF sends the warning action to the job before the actual control
action is taken. This allows the job time to save its result before being terminated by
the job control action.
The warning action specified by
-wa option overrides JOB_WARNING_ACTION
in the queue. JOB_WARNING_ACTION is used as the default when no command
line option is specified.
For example the following specifies that 2 minutes before the job reaches its
runtime limit, an URG signal is sent to the job:
bsub -W 60 -wt '2' -wa 'URG' myjob
-wt '[hour:]minute' Specifies the amount of time before a job control action occurs that a job warning
action is to be taken. Job action warning time is not normalized.
A job action warning time must be specified with a job warning action in order for
job warning to take effect.
The warning time specified by the
bsub -wt option overrides
JOB_ACTION_WARNING_TIME in the queue.
JOB_ACTION_WARNING_TIME is used as the default when no command line
option is specified.
For example the following specifies that 2 minutes before the job reaches its
runtime limit, an URG signal is sent to the job:
bsub -W 60 -wt '2' -wa 'URG' myjob
-Zs Spools a job command file to the directory specified by the JOB_SPOOL_DIR
parameter in
lsb.params, and uses the spooled file as the command file for the job.
By default, the command file is spooled to
LSB_SHAREDIR/cluster_name/lsf_cmddir. If the lsf_cmddir directory does not
exist, LSF creates it before spooling the file. LSF removes the spooled file when the
job completes.
If JOB_SPOOL_DIR is specified, the
-Zs option spools the command file to the
specified directory and uses the spooled file as the input file for the job.
JOB_SPOOL_DIR can be any valid path up to a maximum length up to 4094
characters on UNIX and Linux or up to 255 characters for Windows.
JOB_SPOOL_DIR must be readable and writable by the job submission user, and it
must be shared by the master host and the submission host. If the specified
directory is not accessible or does not exist,
bsub -Zs cannot write to the default
directory
LSB_SHAREDIR/cluster_name/lsf_cmddir and the job fails.
The
-Zs option is not supported for embedded job commands because LSF is
unable to determine the first command to be spooled in an embedded job
command.
-h Prints command usage to stderr and exits.
-V Prints LSF release version to stderr and exits.