12.07.2015 Views

Platform LSF Command Reference - SAS

Platform LSF Command Reference - SAS

Platform LSF Command Reference - SAS

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

sub-Zs-h-VDescriptionSubmits a job for batch execution and assigns it a unique numerical job ID.Runs the job on a host that satisfies all requirements of the job, when all conditions on the job, host, queue, applicationprofile, and cluster are satisfied. If <strong>LSF</strong> cannot run all jobs immediately, <strong>LSF</strong> scheduling policies determine the orderof dispatch. Jobs are started and suspended according to the current system load.Sets the user’s execution environment for the job, including the current working directory, file creation mask, and allenvironment variables, and sets <strong>LSF</strong> environment variables before starting the job.When a job is run, the command line and stdout/stderr buffers are stored in the directoryhome_directory/.lsbatch on the execution host. If this directory is not accessible, /tmp/.lsbtmp user_ID is usedas the job’s home directory. If the current working directory is under the home directory on the submission host, thenthe current working directory is also set to be the same relative directory under the home directory on the executionhost.By default, if the current working directory is not accessible on the execution host, <strong>LSF</strong> finds a working direction torun the job in the following order:1. $HOME on this host2. $PWD3. Strip /tmp_mnt if it is exists in the path4. Replace the first component with a key in /etc/auto.master and try each key5. Replace the first 2 components with a key in /etc/auto.master and try for each key6. Strip the first level of the path and try the rest (for example, if the current working directory is /abc/x/y/z, try tochange directory to the path /x/y/z)7. /tmpIf the environment variable LSB_EXIT_IF_CWD_NOTEXIST is set to Y and the current working directory is notaccessible on the execution host, the job exits with the exit code 2.If no command is supplied, bsub prompts for the command from the standard input. On UNIX, the input is terminatedby entering CTRL-D on a new line. On Windows, the input is terminated by entering CTRL-Z on a new line.To kill a batch job submitted with bsub, use bkill.Use bmod to modify jobs submitted with bsub. bmod takes similar options to bsub.Jobs submitted to a chunk job queue with the following options are not chunked; they are dispatched individually:• -I (interactive jobs)• -c (jobs with CPU limit greater than 30)• -W (jobs with run limit greater than 30 minutes)To submit jobs from UNIX to display GUIs through Microsoft Terminal Services on Windows, submit the job withbsub and define the environment variables <strong>LSF</strong>_LOGON_DESKTOP=1 and LSB_TSJOB=1 on the UNIX host. Usetssub to submit a Terminal Services job from Windows hosts. See Using <strong>Platform</strong> <strong>LSF</strong> on Windows for more details.If the parameter LSB_STDOUT_DIRECT in lsf.conf is set to Y or y, and you use the -o or -oo option, the standardoutput of a job is written to the file you specify as the job runs. If LSB_STDOUT_DIRECT is not set, and you use -o or-oo, the standard output of a job is written to a temporary file and copied to the specified file after the job finishes.LSB_STDOUT_DIRECT is not supported on Windows.206 <strong>Platform</strong> <strong>LSF</strong> <strong>Command</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!