LSF Version 7.3 - Administering Platform LSF

Mail Notification When a Job Starts
682 Administering Platform LSF
If you specify a -o output_file or -oo output_file option and do not specify a
-e error_file or -eo error_file option, the standard output and standard error are
merged and stored in output_file. You can also specify the standard input file if the
job needs to read input from
stdin.
NOTE: The file path can contain up to 4094 characters for UNIX and Linux, or up to 255 characters
for Windows, including the directory, file name, and expanded values for %J (job_ID) and %I
(index_ID).
The output files specified by the output and error file options are created on the
execution host.
See Remote File Access on page 688 for an example of copying the output file back
to the submission host if the job executes on a file system that is not shared between
the submission and execution hosts.
Disabling job email If you do not want job output to be sent by mail, specify stdout and stderr as the
files for the output and error options (
-o, -oo, -e, and -eo). For example, the
following command directs
stderr and stdout to file named /tmp/job_out, and
no email is sent.
bsub -o /tmp/job_out sleep 5
On UNIX, If you want no job output or email at all, specify /dev/null as the output
file:
bsub -o /dev/null sleep 5
Example The following example submits myjob to the night queue:
bsub -q night -i job_in -o job_out -e job_err myjob
The job reads its input from file job_in. Standard output is stored in file job_out,
and standard error is stored in file
job_err.
Size of job email
Some batch jobs can create large amounts of output. To prevent large job output
files from interfering with your mail system, you can use the
LSB_MAILSIZE_LIMIT parameter in
lsf.conf to limit the size of the email
containing the job output information.
By default, LSB_MAILSIZE_LIMIT is not enabled—no limit is set on size of batch
job output email.
If the size of the job output email exceeds LSB_MAILSIZE_LIMIT, the output is
saved to a file under JOB_SPOOL_DIR, or the default job output directory if
JOB_SPOOL_DIR is undefined. The email informs users where the job output is
located.
If the
-o or -oo option of bsub is used, the size of the job output is not checked
against LSB_MAILSIZE_LIMIT.
LSB_MAILSIZE
environment
variable
LSF sets LSB_MAILSIZE to the approximate size in KB of the email containing job
output information, allowing a custom mail program to intercept output that is
larger than desired. If you use the LSB_MAILPROG parameter to specify the
custom mail program that can make use of the LSB_MAILSIZE environment
variable, it is not necessary to configure LSB_MAILSIZE_LIMIT.