LSF Version 7.3 - Administering Platform LSF

Administering Platform LSF 593
Interactive Jobs with bsub
When an interactive job is submitted, a message is displayed while the job is
awaiting scheduling. The
bsub command stops display of output from the shell
until the job completes, and no mail is sent to the user by default. A user can
issue a
ctrl-c at any time to terminate the job.
Interactive jobs cannot be checkpointed.
Interactive batch jobs cannot be rerunnable (
bsub -r)
You can submit interactive batch jobs to rerunnable queues
(RERUNNABLE=y in
lsb.queues) or rerunnable application profiles
(RERUNNABLE=y in lsb.applications).
Submit an interactive job by using a pseudo-terminal
Submission of interaction jobs using pseudo-terminal is not supported for
Windows for either
lsrun or bsub LSF commands.
bsub -Ip 1 To submit a batch interactive job by using a pseudo-terminal, use the bsub -Ip
option.
For example:
% bsub -Ip vi myfile
Submits a batch interactive job to edit myfile.
When you specify the
-Ip option, bsub submits a batch interactive job and
creates a pseudo-terminal when the job starts. Some applications such as
vi for
example, require a pseudo-terminal in order to run correctly.
bsub -Is 1 To submit a batch interactive job and create a pseudo-terminal with shell mode
support, use the
bsub -Is option.
For example:
% bsub -Is csh
Submits a batch interactive job that starts up csh as an interactive shell.
When you specify the
-Is option, bsub 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).
Submit an interactive job and redirect streams to files
bsub -i, -o, -e You c a n u s e t he -I option together with the -i, -o, and -e options of bsub to
selectively redirect streams to files. For more details, see the
bsub(1) man page.
1 To save the standard error stream in the job.err file, while standard input and
standard output come from the terminal:
% bsub -I -q interactive -e job.err lsmake