The pre- and post-execution processing feature is enabled by defining at least one of the parameters PRE_EXEC or POST_EXEC at the application or queue level, or by using the -E option of the bsub command to specify a pre-execution command. In some situations, specifying a queue-level or application-level pre-execution command can have advantages over requiring users to use bsub -E. For example, license checking can be set up at the queue or application level so that users do not have to enter a pre-execution command every time they submit a job.
Begin QueueQUEUE_NAME = priorityPRIORITY = 43NICE = 10PRE_EXEC = /usr/share/lsf/pri_prexecPOST_EXEC = /usr/share/lsf/pri_postexecEnd Queue
The following application specifies the pre-execution /usr/share/lsf/catia_prexec and the post-execution command /usr/share/lsf/catia_postexec.
Begin ApplicationNAME = catiaDESCRIPTION = CATIA V5CPULIMIT = 24:0/hostA # 24 hours of host hostAFILELIMIT = 20000DATALIMIT = 20000 # jobs data segment limitCORELIMIT = 20000PROCLIMIT = 5 # job processor limitPRE_EXEC = /usr/share/lsf/catia_prexecPOST_EXEC = /usr/share/lsf/catia_postexecREQUEUE_EXIT_VALUES = 55 34 78End Application