ctmfw – valid actions

The following table lists the ctmfw valid actions:

Action

Description

DO_CMD <command>

Execute a valid command under the command interpreter. Full path names are required for files.

DO_COND <condition name>
<condition date> <+|->

Add (+) or delete (-) a condition.

DO_EXIT [exit code]

Terminate ctmfw with the user-defined exit code.

DO_NOTOK [exit code]

Terminate an ON_FILEWATCH statement with status NOTOK. Exit code is optional and replaces the standard return code, as described in the ctmfw-return codes table below.

DO_OK

Terminate an ON_FILEWATCH statement with status OK. If there is more than one file in the Rule file, the result displayed is that of an AND algorithm.

NOTE: If the file is detected and the size remains static within the time frame (CREATE) or the file has been deleted (DELETE), the DO commands in the THEN block are executed. If the file is not detected or deleted within the time frame, the statements following the ELSE block are executed. ctmfw terminates when all the files in the Rules file have been processed.

If an ON_FILEWATCH statement contains a cyclic_interval parameter, ctmfw will only stop monitoring a file on a DO_OK or DO_NOTOK action.

Parent Topic

ctmfw File Watcher utility