unixunix-timestampworkload-schedulertivoli-work-scheduler

Using OR Operator for File Dependencies


I want to add the file dependency to a job. Suppose there are 2 files

1 : Test.Pdf 2 : Test.xml

Whenever there is either of the file(any one of the file or both) the job should trigger.

I tried multiple qualifiers but not getting the desired result.

Qualifiers that I have tried so far :

A)-w %p/I%DATE:~12,2%%DATE:~4,2%%DATE:~7,2%*Test.xml || *Test.Pdf

B)-w %p/I*Test.xml || *Test.Pdf

C)-w %p/I*Test.xml || /I*Test.Pdf

D)-w %p/I*Test.xml || -w %p/I*Test.Pdf

Can anyone let me know how to add the OR Dependency?


Solution

  • The file dependencies are actually running test <qualifier> command, replacing %p with the filename in qualifier.

    This should work for you scenario: OPENS "/tmp" (-w %p/Test.xml -o -w %p/Test.Pdf)