I have seen many post but still not working for me.
I just need to see if file is not present in directory need not to run job and send mail. I am checking as below
In seq in execute command actvity
ls -lrt /Path/*ABC*.xml | wc -l
in trigger section am checking like this
for no file
Trim(ExecFileCheck.$CommandOutput,@FM) = 0
For file
Trim(ExecFileCheck.$CommandOutput,@FM) >=1 (multiple file may come)
But its not working. Output of command from director is
when no file
When file is present isseq_..JobControl (@ExecFileCheck): Executed: ls -lrt /path/*ABC*.xml | wc -l
Reply=0
Output from command ====>
ls: /path/*RATEE*.xml: No such file or directory
0
Please suggest what i am missing.seq_..JobControl (@ExecFileCheck): Executed: ls -lrt /path/*ABC*.xml | wc -l
Reply=0
Output from command ====>
1
Thanks,
Akarsh