
I would really appreciate any help on the file watcher command with use of the ipnut rule file.
I am trying to set up a job with ctmfw -input <rule.file> to woatch for multiple trigger files and getting this error in the Sysout after the job ends OK
Syntax error when performing line :'DO_COND PL-PESSTEST905-FILEW-DUMMY-OK +'
Here is the command used in the job:
/opt/ctmag/ctm/exe/ctmfw -input /export/home/j979095/filew.rule
here are the contents of the filew.rule file
# MIN_SIZE 0
# MIN_AGE 1min
# FROM_TIME 0000
# MIN_DETECT 3
# WAIT_TIME 5
# CYCLIC_INTERVAL 10
# STOP_TIME 2300
ON_FILEWATCH /appl1/dropbox/a_mdmftp/out/dummy.txt CREATE 0 3 1 0000 10 N 0
THEN
DO_COND PL-PESSTEST905-FILEW-DUMMY-OK +
DO_OK 0
ELSE
# DO_COND PL-PESSTEST905-FILEW-DUMMY-OK -
DO_NOTOK 1
END_ON
ON_FILEWATCH /appl1/dropbox/a_mdmftp/out/dummy1.txt CREATE 0 3 1 0000 10 N 0
THEN
DO_COND PL-PESSTEST905-FILEW-DUMMY1-OK +
DO_OK 0
ELSE
# DO_COND PL-PESSTEST905-FILEW-DUMMY1-OK -
DO_NOTOK 1
END_ON
ON_FILEWATCH /appl1/dropbox/a_mdmftp/out/dummy2.txt CREATE 0 3 1 0000 10 N 0
THEN
DO_COND PL-PESSTEST905-FILEW-DUMMY2-OK +
DO_OK 0
ELSE
# DO_COND PL-PESSTEST905-FILEW-DUMMY2-OK -
DO_NOTOK 1
END_ON
Thanks.
Hello Alex,
You are missing part of the DO_COND statment in your filewatcher input file for each do condition you need the following
DO_COND <condition name> <date> <+ or ->
So an example would be as follows:
DO_COND PL-PESSTEST905-FILEW-DUMMY-OK ODAT +
Hope this helps.
John
John,
Thank you for your help, and actually I was able to figure that I am missing ODAT parameter in the statement, but your answer just proved me correct.
Alex.