25.06.2015 Views

Administering Platform LSF - SAS

Administering Platform LSF - SAS

Administering Platform LSF - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Mail Notification When a Job Starts<br />

Directory for job output<br />

The -o and -e options of the bsub and bmod commands can accept a file name<br />

or directory path. <strong>LSF</strong> creates the standard output and standard error files in<br />

this directory. If you specify only a directory path, job output and error files<br />

are created with unique names based on the job ID so that you can use a single<br />

directory for all job output, rather than having to create separate output<br />

directories for each job.<br />

Specifying a directory for job output<br />

Standard output<br />

Standard error<br />

Example<br />

For more information<br />

Make the final character in the path a slash (/) on UNIX, or a double backslash<br />

(\\) on Windows. If you omit the trailing slash or backslash characters, <strong>LSF</strong><br />

treats the specification as a file name.<br />

If the specified directory does not exist, <strong>LSF</strong> creates it on the execution host<br />

when it creates the standard error and standard output files.<br />

By default, the output files have the following format:<br />

output_directory/job_ID.out<br />

error_directory/job_ID.err<br />

The following command creates the directory /usr/share/lsf_out if it does<br />

not exist, and creates the standard output file job_ID.out in this directory<br />

when the job completes:<br />

% bsub -o /usr/share/lsf_out/ myjob<br />

The following command creates the directory C:\lsf\work\lsf_err if it<br />

does not exist, and creates the standard error file job_ID.err in this directory<br />

when the job completes:<br />

% bsub -e C:\lsf\work\lsf_err\\ myjob<br />

See the <strong>Platform</strong> <strong>LSF</strong> Reference for information about the LSB_MAILSIZE<br />

environment variable and the LSB_MAILTO, LSB_MAILSIZE_LIMIT parameters<br />

in lsf.conf, and JOB_SPOOL_DIR in lsb.params.<br />

508<br />

<strong>Administering</strong> <strong>Platform</strong> <strong>LSF</strong>

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

Saved successfully!

Ooh no, something went wrong!