LSF Version 7.3 - Administering Platform LSF

Administering Platform LSF 685
Job Email and Job File Spooling
Unless you use -is, you can use the special characters %J and %I in the name of the
input file.
%J is replaced by the job ID. %I is replaced by the index of the job in the
array, if the job is a member of an array, otherwise by 0 (zero). The special
characters
%J and %I are not valid with the -is option.
Specifying a job command file (bsub -Zs)
Use the bsub -Zs command to spool a job command file to the directory specified
by the JOB_SPOOL_DIR parameter in
lsb.params. LSF uses the spooled file as the
command file for the job.
Use the
bmod -Zs command if you need to change the command file after the job
has been submitted. Changing the original input file does not affect the submitted
job. Use
bmod -Zsn to cancel the last spooled command file and use the original
spooled file.
The bsub -
Zs option is not supported for embedded job commands because LSF is
unable to determine the first command to be spooled in an embedded job
command.
About the job spooling directory (JOB_SPOOL_DIR)
If JOB_SPOOL_DIR is specified in lsb.params:
The job input file for bsub -is is spooled to JOB_SPOOL_DIR/lsf_indir. If
the
lsf_indir directory does not exist, LSF creates it before spooling the file.
LSF removes the spooled file when the job completes.
The job command file for bsub -Zs is spooled to
JOB_SPOOL_DIR/lsf_cmddir. If the lsf_cmddir directory does not exist, LSF
creates it before spooling the file. LSF removes the spooled file when the job
completes.
The JOB_SPOOL_DIR directory should be a shared directory accessible from the
master host and the submission host. The directory must be readable and writable
by the job submission users.
JOB_SPOOL_DIR can be any valid path up to a maximum length up to 4094
characters on UNIX and Linux or up to 255 characters for Windows.
JOB_SPOOL_DIR must be readable and writable by the job submission user, and it
must be shared by the master host and the submission host. If the specified
directory is not accessible or does not exist,
bsub -is cannot write to the default
directory
LSB_SHAREDIR/cluster_name/lsf_cmddir and the job will fail.
Except for
bsub -is and bsub -Zs, if JOB_SPOOL_DIR is not accessible or does
not exist, output is spooled to the default job output directory
.lsbatch.
For
bsub -is and bsub -Zs, JOB_SPOOL_DIR must be readable and writable by
the job submission user. If the specified directory is not accessible or does not exist,
bsub -is and bsub -Zs cannot write to the default directory and the job will fail.
If JOB_SPOOL_DIR is not specified in
lsb.params:
The job input file for bsub -is is spooled to
LSB_SHAREDIR/cluster_name/lsf_indir. If the lsf_indir directory does
not exist, LSF creates it before spooling the file. LSF removes the spooled file
when the job completes.