Arguments
- -v
- Returns the command version and exits.
- -u
- Returns command usage information and exits.
- -?
- Same as -u
- -condition
- The condition to be checked. Valid values are:
- wcr | waitCreated
- Waits until the file exists. If the file already exists, filewatch exits
immediately. If
-filenameargument specifies a directory, the process waits until the directory exists and contains a new file. - wmr | waitModificationRunning
- Waits until the file size or modification time changes. If
-filenameargument specifies a directory, the process waits until the size or earlier file modification time changes, when a file is created, modified, or deleted. - wmc | waitModificationCompleted
- Checks that the file size or modification time stopped changing,
meaning that filewatch waits for three search intervals without
any change. If
-filenameargument specifies a directory, the process checks the size or the earlier file modification time change, for example if the number of directory files and the earlier file modification time does not change within three search intervals. - wmrc | waitModificationRunningCompleted
- Waits until the file size or modification time changes and stops
changing, meaning that, after the first change, filewatch waits
for three search intervals without any further change. If
-filenameargument specifies a directory, the process checks the size or the earlier file modification time change, for example if the number of directory files and the earlier file modification time does not change within three search intervals. - wdl | waitDelete
- Stops running when the file is deleted. If
-filenameargument specifies a directory, the process waits until a file is deleted from the directory.
- -filename
- The file path to be processed. You can embed blank or special characters, by using double quotation marks. Wildcard characters are not supported. To include more files in the monitoring process, you can store those files in a specific directory and use a file path specifying that directory. When filewatch is used on a Windows™ server, and the file path specifies a directory, the path name must not include a trailing forward slash "/" character.
- -deadline
- The deadline period, expressed in seconds. The allowed formats
are:
- An integer in the range 0 to 31536000 (the upper value corresponds to one year). To have filewatch performing an indefinite loop, specify 0.
- hh:mm:ss, in the range 00:00:01 to 24:00:00, to select a time within the same day when filewatch started.
- -interval
- The file search interval, expressed in seconds. Specify an integer
in the range:
- 5–3600 when specifying wcr or wdl as condition value.
- 30–3600 otherwise.
- -database
- Optional extension of the log database, that is the database where filewatch stores
the file status. If you specify this value, filewatch updates
the
TWA_home/TWS/mozart/filewatchdb.log_extensiondatabase, otherwiseTWA_home/TWS/mozart/filewatchdbis updated.For details about the log database, see Maintaining the filewatch log database.
- -returncode
- The exit return code, if the file is not found by the deadline. Specify an integer in the range 0 to 256. The returncode value is ignored if you specify 0 as deadline value. The default is 4.
- -trace
- Trace level for internal logging and traces. Possible values are:
- 0
- To receive error messages only.
- 1
- Indicates the fine level, to receive the most important messages with the lowest volume.
- 2
- Indicates the finer level, to activate entry and exit traces.
- 3
- Indicates the finest level, to receive the most detailed tracing output.
You find the trace output in the log of the job that run filewatch.