Submit a batch interactive job that starts csh as an interactive shell.
bsub
Submit my_program to run after 8 p.m. and assign it the job name my_job_name.
bsub my_script
Submit my_script as a batch job. Since my_script is specified as a command line argument, the my_script file is not spooled. Later changes to the my_script file before the job completes may affect this job.
bsub < default_shell_script
where default_shell_script contains:
sim1.exe
sim2.exe
The file default_shell_script is spooled, and the commands are run under the Bourne shell since a shell specification is not given in the first line of the script.
bsub < csh_script
where csh_script contains:
#!/bin/csh
sim1.exe
sim2.exe
csh_script is spooled and the commands are run under /bin/csh.
bsub
where my_script contains:
#!/bin/sh #BSUB
#BSUB
#BSUB
#BSUB
The job is submitted to the night queue instead of test, because the command line overrides the script.
bsub
bsub> sleep 1800 bsub> my_program bsub>
The job commands are entered interactively.
bsub
Submits myjob with a maximum number of concurrent threads of 4.
bsub
Submit the UNIX command sleep together with its argument 100 as a batch job to the service class named Kyuquot.
Platform LSF Command Reference 207