Platform LSF Reference Version 6.2
Environment Variable Reference
Platform LSF Reference
278
When the post-execution command is run, the environment variable
LSB_JOBEXIT_INFO is set if the job is signalled internally. If the job ends successfully,
or the job is killed or signalled externally, LSB_JOBEXIT_INFO is not set.
Examples
LSB_JOBEXIT_INFO="SIGNAL -1 SIG_CHKPNT"
LSB_JOBEXIT_INFO="SIGNAL -14 SIG_TERM_USER"
LSB_JOBEXIT_INFO="SIGNAL -23 SIG_KILL_REQUEUE"
Default
Undefined
Where defined
Set by sbatchd
LSB_JOBEXIT_STAT
Syntax
LSB_JOBEXIT_STAT=exit_status
Description
Indicates a job’s exit status.
Applies to post-execution commands. Post-execution commands are set with
POST_EXEC in
lsb.queues.
When the post-execution command is run, the environment variable
LSB_JOBEXIT_STAT is set to the exit status of the job. Refer to the man page for the
wait(2) command for the format of this exit status.
The post-execution command is also run if a job is requeued because the job’s execution
environment fails to be set up, or if the job exits with one of the queue’s
REQUEUE_EXIT_VALUES. The LSB_JOBPEND environment variable is set if the
job is requeued. If the job’s execution environment could not be set up,
LSB_JOBEXIT_STAT is set to 0.
Valid values
Any positive integer
Where defined
Set by sbatchd
LSB_JOBFILENAME
Syntax
LSB_JOBFILENAME=file_name
Description
The path to the batch job file.
Notes
Specifies the path to the batch executable job file that invokes the batch job. The batch
executable job file is a
/bin/sh script on UNIX systems or a .BAT command script
on Windows systems.
LSB_JOBID
Syntax
LSB_JOBID=job_ID
Description
The job ID assigned by the Batch system. This is the ID of the job assigned by LSF, as
shown by
bjobs.
Valid values
Any positive integer
Where defined
Set by sbatchd, defined by mbatchd
See also
LSB_REMOTEJID