The ctmfw (Control-M File Watcher) utility, enables you to detect the successful completion of a file transfer activity and to create or delete a file. You can use it before activating a job or before performing a task, such as sending a shout message or adding/deleting conditions, which is dependent upon a created file.
NOTE: The Control-M File Watcher utility does not support files with a modify time older than 50 years.
The ctmfw utility runs as a process on a client computer. The process waits for the creation or deletion of a specified file. The ctmfw utility does the following:
The ctmfw utility can be run from the command line or be invoked to detect a single file or multiple files. For more information, see Watching a single file and Watching multiple files.
You can create a File Watcher job, as described in Creating a job, by using the File Watcher job parameters. Variables can be used in parameter fields.
NOTE: You cannot run a File Watcher job on a remote host.
There are two usages for this utility:
To allow other users to run ctmfw, they must have write permissions to $CONTROLM and the CONTROLM environment variable must be set. For more information, see Running Control-M/Agent utilities as other users on UNIX. For details about ctmfw processing and return codes issued after detecting if a file is created or deleted in the specified time frame, see ctmfw utility processing and Return codes.
To view a detailed File Watcher overview video, see https://www.youtube.com/watch?v=iZZCUWOQt-E.
Parent Topic |