You are here: 17 Object Triggers > How-to > Using a Trigger to Execute a Script

17.4 Using a Trigger to Execute a Script

To use a trigger to execute a script

  1. Create or locate the script and note its location.
  2. Create a trigger on the desired object, setting the AType to exec and the Action to location of the script or program.
  3. 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.

© 2016 Adaptive Computing