LSF Version 7.3 - Administering Platform LSF

Running X Applications with bsub
598 Administering Platform LSF
<< Just started a job recently: 1 host; >>
<< Load information unavailable: 1 host; >>
<< Job's resource requirements not satisfied: 1 host; >>
Job terminated by
user
The following example shows messages displayed when a job in pending state is
terminated by the user:
bsub -m hostA -b 13:00 -Is sh
Job <2015> is submitted to default queue <normal>.
Job will be scheduled after Fri Nov 19 13:00:00 1999
<<Waiting for dispatch ...>>
<< New job is waiting for scheduling >>
<< The job has a specified start time >>
bkill 2015
<< Job <2015> has been terminated by user or administrator >>
<<Terminated while pending>>
Job suspended
then resumed
The following example shows messages displayed when a job is dispatched,
suspended, and then resumed:
bsub -m hostA -Is sh
Job <2020> is submitted to default queue <normal>.
<<Waiting for dispatch ...>>
<< New job is waiting for scheduling >>
<<Starting on hostA>>
bstop 2020
<< The job was suspended by user >>
bresume 2020
<< Waiting for re-scheduling after being resumed by user >>
Running X Applications with bsub
You can start an X session on the least loaded host by submitting it as a batch job:
bsub xterm
An xterm is started on the least loaded host in the cluster.
When you run X applications using
lsrun or bsub, the environment variable
DISPLAY is handled properly for you. It behaves as if you were running the X
application on the local machine.
Writing Job Scripts
You can build a job file one line at a time, or create it from another file, by running
bsub without specifying a job to submit. When you do this, you start an interactive
session in which
bsub reads command lines from the standard input and submits
them as a single batch job. You are prompted with
bsub> for each line.
You can use the
bsub -Zs command to spool a file.
For more details on
bsub options, see the bsub(1) man page.