17.0 Object triggers > How-to's > Using a trigger to execute a script

Conventions

17.3 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.