(Click to open topic with navigation)
Exec triggers launch a program or script when the event occurs. A few examples of what a script might do in response to an event include:
It is important to note that when a script runs via a trigger, Moab forks and performs a direct OS exec, meaning there will be no pre-processing of the command by the shell. In addition, the script runs in a new, reduced environment without the same settings and variables as the environment from which it stemmed. The script must be able to run in the reduced environment.
To use a trigger to execute a script
JOBCFG[temp1] TRIGGER=EType=start,AType=exec,Offset=03:00,Action="/tmp/monitor.pl"
Jobs with the temp1 template receive a trigger that executes monitor.pl three minutes after the job starts.