Output
command [argument] The job can be specified by a command line argument command, or through the standard input if the command is not present on the command line. The command can be anything that is provided to a UNIX Bourne shell (see sh(1)). command is assumed to begin with the first word that is not part of a bsub option. All arguments that follow command are provided as the arguments to the command.
The job command can be up to 4094 characters long for UNIX and Linux or up to 255 characters for Windows. If no job name is specified with
If the batch job is not given on the command line, bsub reads the job commands from standard input. If the standard input is a controlling terminal, the user is prompted with bsub> for the commands of the job. The input is terminated by entering
The commands are executed in the order in which they are given. bsub options can also be specified in the standard input if the line begins with #BSUB; e.g., #BSUB
See Examples for examples of specifying commands through standard input.
Output
If the job is successfully submitted, displays the job ID and the queue to which the job has been submitted.
Examples
bsub sleep 100
Submit the UNIX command sleep together with its argument 100 as a batch job.
bsub
Submit the UNIX command pwd and ls as a batch job to the queue named short and store the job output in my_output file.
bsub
Submit my_program to run on one of the candidate hosts: host1, host3, host8 and host9.
bsub
Submit my_program to one of the candidate queues: queue1, queue2, and queue3 which are selected according to the CPU time limit specified by
bsub
Submit a batch interactive job which displays the output of ls at the user’s terminal.
bsub
Submit a batch interactive job to edit myfile.
bsub
206Platform LSF Command Reference