Hi, I am performing a file watch on a file that contains a wild card:-
ctmfw "E:\Interfaces\tmp\axa_to_jpm_fx_q_to_file*.txt" CREATE 1 1 3 3 10 Y
I want the job to fail unless the file it finds is at least 1 byte in size.
I have read that by adding the Y at the end of the command line, that it will take size into account, but this is not working.
Any ideas?
CTMFW with wild card and file size
From the ctmfw documentation for CREATE mode:
"Detects creation of a file. Default. File size is ignored if the filename
parameter contains wildcards (unless the monitor file size when
wildcard is used parameter is set to Y).
Note: If a mask is specified for the filename, and the monitor file size
when wildcard is used parameter is set to
■ N, the ctmfw utility will end OK after detection of the first file that
matches the specified mask.
■ Y, the ctmfw utility will end OK after detection of the first file that
matches the filename and file size. "
and more:
"If this parameter is set to Y and more than one file matches the specified mask, the ctmfw utility randomly selects one matching file, monitors its file size, and ignores all other matching files."
The monitor of the creation and the size works only for the FIRST file, the others are not monitored. This can be your problem like was for me.
If you want to monitor the creation and the size grow of all the files, you must run the utility for all the files.
"Detects creation of a file. Default. File size is ignored if the filename
parameter contains wildcards (unless the monitor file size when
wildcard is used parameter is set to Y).
Note: If a mask is specified for the filename, and the monitor file size
when wildcard is used parameter is set to
■ N, the ctmfw utility will end OK after detection of the first file that
matches the specified mask.
■ Y, the ctmfw utility will end OK after detection of the first file that
matches the filename and file size. "
and more:
"If this parameter is set to Y and more than one file matches the specified mask, the ctmfw utility randomly selects one matching file, monitors its file size, and ignores all other matching files."
The monitor of the creation and the size works only for the FIRST file, the others are not monitored. This can be your problem like was for me.
If you want to monitor the creation and the size grow of all the files, you must run the utility for all the files.
- ahtisham454
- Nouveau
- Posts: 23
- Joined: 16 Feb 2012 12:00