Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

SLAC uses LSF batch system. LSF replica your current environment setup when submitting jobs. This includes your current working directory and any Unix environment variable setups. The following are examples of using LSF:

 Submit a job

$ cat myjob.sh
#!/bin/sh
#BSUB -W180
pwd
echo "hello world"

$ bsub < myjob.sh
Job <96917> is submitted to default queue <medium>.

This will submit a job to LSF. The "pwd" command will print out the job's working directory, which should be the same the directory where this job is submitted. 

 Manage jobs

Use bjobs, or bjobs -l <JOBID> to get detailed info about a specific job. Use bkill <JOBID> to kill a job

  • For details about those LSF commands and their options, please refers to the man pages of "bsub", "bjobs", "bkill".

More info on LSF

...