Previous Topic

Next Topic

Book Contents

Book Index

Example rule file

The following displays an example rule file. In this sample:

#******************************************************************

# Global Parameters

INTERVAL <60> # Sleep interval (seconds)

MIN_SIZE 4Kilo

MIN_AGE 3M24D4h5min

FROM_TIME <0000> # Starting time for all files (hhmm)

MIN_SIZE <0> # Minimum size for all files (bytes)

MIN_DETECT <3> # Number of iterations for all files

WAIT_TIME <0> # Time limit for all files (minutes)

# ON_FILEWATCH statements

ON_FILEWATCH <fileName>(absolute path) [CREATE/DELETE] [min_size] [min_detect] [wait_time]
[start_time] [cyclic_interval] [wildcards] [minimal_file_age]

THEN

<action>

ELSE

<action>
END_ON
#******************************************************************

If a wildcard is used in the file name, the found file can be referenced as %FILENAME%.

EXAMPLE:

INTERVAL 10

ON_FILEWATCH /controlm/datafile*.txt CREATE

THEN

DO_COND %FILENAME% 0101 +

NOTE: All global parameters must be delimited by the new line character.

Parent Topic

ctmfw File Watcher utility