LSF Version 7.3 - Platform LSF Configuration Reference

or application level so that users do not have to enter a pre-execution command every time
they submit a job.
Configuration file Parameter and syntax Behavior
lsb.queues
PRE_EXEC=command
Enables pre-execution processing at the queue level.
The pre-execution command runs on the execution host
before the job starts.
If the PRE_EXEC command exits with a non-zero exit code,
LSF requeues the job to the front of the queue.
The PRE_EXEC command uses the same environment
variable values as the job.
POST_EXEC=
command
Enables post-execution processing at the queue level.
The POST_EXEC command uses the same environment
variable values as the job.
The post-execution command for the queue remains
associated with the job. The original post-execution
command runs even if the job is requeued or if the post-
execution command for the queue is changed after job
submission.
Before the post-execution command runs,
LSB_JOBEXIT_STAT is set to the exit status of the job. The
success or failure of the post-execution command has no
effect on LSB_JOBEXIT_STAT.
The post-execution command runs after the job finishes,
even if the job fails.
Specify the environment variable $USER_POSTEXEC to
allow UNIX users to define their own post-execution
commands.
Feature: Pre-execution and post-execution processing
38 Platform LSF Configuration Reference