Conditionnal run of a job
Moderators: chulett, rschirm, roy
Conditionnal run of a job
Hello,
I have a job I want to launch only if a certain file exist. So, i tried a wait for file in the before subroutine job but it doesn't work. The job statut is Aborted if the file is not present.
Do you have any suggestion on how to do this? I'm looking for a method not to complicated to implement because I have more than 10 jobs to launch by this way.
cheers,
bart.
I have a job I want to launch only if a certain file exist. So, i tried a wait for file in the before subroutine job but it doesn't work. The job statut is Aborted if the file is not present.
Do you have any suggestion on how to do this? I'm looking for a method not to complicated to implement because I have more than 10 jobs to launch by this way.
cheers,
bart.
Re: Conditionnal run of a job
Have you tried the "Wait-For-File Activity" sequence in the Job Sequence?bart12872 wrote:So, i tried a wait for file in the before subroutine job but it doesn't work.
That should satisfy your needs.
If it does not help, get back.
Narasimha Kade
Finding answers is simple, all you need to do is come up with the correct questions.
Finding answers is simple, all you need to do is come up with the correct questions.
Do you need to wait for file or just check if it exists or not? If the former then look into narasimha's suggestion. If the latter then search this forum. I posted a routine, a simple one, a while back that returns a true or a false for file presence and absence respectively.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Here's the routine I was talking about:
viewtopic.php?t=100401
Go to the second page. You can remove the timeout part if you want.
viewtopic.php?t=100401
Go to the second page. You can remove the timeout part if you want.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
I believe that is a true statement. May or may not be an issue for folks, if so a quick "if -s" or other UNIX file check could easily be run in a Command stage. For Windows... [shrug]DSguru2B wrote:Doesnt it spit out a warning if file doesnt exist for the very same reason ?
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers