LSF Version 7.3 - Platform LSF Configuration Reference

Feature: Pre-execution and post-execution
processing
The pre- and post-execution processing feature provides a way to run commands on the
execution host prior to and after completion of LSF jobs. Use pre-execution commands to set
up an execution host with the required directories, files, software licenses, environment, and
user permissions. Use post-execution commands to define post-job processing such as
cleaning up job files or transferring job output.
Contents
About pre- and post-execution processing
Scope
Configuration to enable pre- and post-execution processing
Pre- and post-execution processing behavior
Configuration to modify pre- and post-execution processing
Pre- and post-execution processing commands
About pre- and post-execution processing
You can use the pre- and post-execution processing feature to run commands before a batch
job starts or after it finishes. Typical uses of this feature include the following:
Reserving resources such as tape drives and other devices not directly configurable in LSF
Making job-starting decisions in addition to those directly supported by LSF
Creating and deleting scratch directories for a job
Customizing scheduling based on the exit code of a pre-execution command
Checking availability of software licenses
Assigning jobs to run on specific processors on SMP machines
Transferring data files needed for job execution
Modifying system configuration files before and after job execution
Using a post-execution command to clean up a state left by the pre-execution command
or the job
Pre-execution commands can be defined at the queue, application, and job levels. Post-
execution commands can be defined at the queue and application levels.
Default behavior (feature not enabled)
Feature: Pre-execution and post-execution processing
36 Platform LSF Configuration Reference