Platform LSF Reference Version 6.2

bsub
Platform LSF Reference
153
DEFAULT_PROJECT parameter in lsb.params(5)). If
DEFAULT_PROJECT is not defined, then LSF uses
default as the default
project name.
OPTIONS
-B
Sends mail to you when the job is dispatched and begins execution.
-H
Holds the job in the PSUSP state when the job is submitted. The job will not be
scheduled until you tell the system to resume the job (see
bresume(1)).
-I | -Ip | -Is
-I
Submits a batch interactive job. A new job cannot be submitted until the interactive job
is completed or terminated.
Sends the job’s standard output (or standard error) to the terminal. Does not send mail
to you when the job is done unless you specify the
-N option.
Terminal support is available for a batch interactive job.
When you specify the
-Ip option, submits a batch interactive job and creates a
pseudo-terminal when the job starts. Some applications (for example,
vi) require a
pseudo-terminal in order to run correctly.
When you specify the
-Is option, submits a batch interactive job and creates a
pseudo-terminal with shell mode support when the job starts. This option should be
specified for submitting interactive shells, or applications which redefine the CTRL-C
and CTRL-Z keys (for example,
jove).
If the
-i input_file option is specified, you cannot interact with the job’s standard input
via the terminal.
If the
-o out_file option is specified, sends the job’s standard output to the specified
output file. If the
-e err_file option is specified, sends the job’s standard error to the
specified error file.
You cannot use
-I, -Ip, or -Is with the -K option.
Interactive jobs cannot be checkpointed.
Interactive jobs cannot be rerunnable (
bsub -r).
The options that create a pseudo-terminal (
-Ip and -Is) are not supported on
Windows.
-K
Submits a batch job and waits for the job to complete. Sends the message "Waiting
for dispatch
" to the terminal when you submit the job. Sends the message "Job is
finished
" to the terminal when the job is done.
You will not be able to submit another job until the job is completed. This is useful when
completion of the job is required in order to proceed, such as a job script. If the job
needs to be rerun due to transient failures,
bsub returns after the job finishes