LSF Version 7.3 - Administering Platform LSF
Administering Platform LSF 683
Job Email and Job File Spooling
LSB_MAILSIZE is not recognized by the LSF default mail program. To prevent
large job output files from interfering with your mail system, use
LSB_MAILSIZE_LIMIT to explicitly set the maximum size in KB of the email
containing the job information.
LSB_MAILSIZE
values
The LSB_MAILSIZE environment variable can take the following values:
◆ A positive integer: if the output is being sent by email, LSB_MAILSIZE is set to
the estimated mail size in KB.
◆ -1 :if the output fails or cannot be read, LSB_MAILSIZE is set to -1 and the
output is sent by email using LSB_MAILPROG if specified in
lsf.conf.
◆ Undefined: If you use the output or error options (-o, -oo, -e, or -eo) of bsub,
the output is redirected to an output file. Because the output is not sent by email
in this case, LSB_MAILSIZE is not used and LSB_MAILPROG is not called.
If the
-N option is used with the output or error options of bsub, LSB_MAILSIZE is
not set.
Directory for job output
The output and error options (-o, -oo, -e, and -eo) of the bsub and bmod
commands can accept a file name or directory path. LSF creates the standard output
and standard error files in this directory. If you specify only a directory path, job
output and error files are created with unique names based on the job ID so that you
can use a single directory for all job output, rather than having to create separate
output directories for each job.
NOTE: The directory path can contain up to 4094 characters for UNIX and Linux, or up to 255
characters for Windows.
Specifying a directory for job output
Make the final character in the path a slash (/) on UNIX, or a double backslash (\\)
on Windows. If you omit the trailing slash or backslash characters, LSF treats the
specification as a file name.
If the specified directory does not exist, LSF creates it on the execution host when
it creates the standard error and standard output files.
By default, the output files have the following format:
Standard output output_directory/job_ID.out
Standard error error_directory/job_ID.err
Example The following command creates the directory /usr/share/lsf_out if it does not
exist, and creates the standard output file job_ID
.out in this directory when the job
completes:
bsub -o /usr/share/lsf_out/ myjob
The following command creates the directory C:\lsf\work\lsf_err if it does not
exist, and creates the standard error file job_ID
.err in this directory when the job
completes:
bsub -e C:\lsf\work\lsf_err\\ myjob