Previous Topic: File Trigger JobsNext Topic: Monitor a File that is Owned by a UNIX Owner or Group


Defining File Trigger Jobs

You can define a File Trigger (FILE_TRIGGER) job to monitor when a file is created, updated, deleted, expanded, or shrunk, and when a file exists or does not exist.

Note:

Required Statements

To define a File Trigger job, you must specify the following statements:

Optional Statements

You can specify the following optional statements for a File Trigger job:

Example: Monitor an Update to a Payroll File on a Windows Computer

This example monitors an update to the payroll.dat file on a Windows computer. When the file is updated, the job completes.

AGENT NT_NY
FILENAME c:\data\payroll.dat UPDATE

Example: Monitor an Update to a Payroll File on a UNIX Computer

This example monitors an update to the payroll file on a UNIX computer. When the file is updated, the job completes.

AGENT UNIX_NY
FILENAME /usr/data/payroll UPDATE

Example: Monitor an Update to a Payroll File Object on an i5/OS System

This example monitors an update to the payroll file object on an i5/OS computer. When the file is updated, the job completes.

AGENT I5_NY
FILENAME /QSYS.LIB/LIBRARY.LIB/DEPT.FILE/PAYROLL.MBR UPDATE

Example: Monitor an Update to a Payroll File Object on an HP Integrity NonStop System

This example monitors an update to the payroll file object on an HP Integrity NonStop computer. When the file is updated, the job completes.

AGENT HPNS_NY
FILENAME $SYS.DATA.PAYROLL UPDATE