We want to run a job whenever we get a .done file in UNIX folder. I was able to look file using "Wait for file Activity" in sequence.
But I want this job to get triggered automatically multiple times in a day. I mean i will get 6 or 7 .done files in a day. My job should run accordingly. Please share your thoughts on this.
regards,
Santosh
pooling file
Moderators: chulett, rschirm, roy
WaitforFile may not help you much.
But use Execute command activity to find for this file.
Since you need to find anywhere in the unix folder,use and use the Comand output in the Trigger to check for the output and trigger the rest of the stage. You can itrate this command continuesly with some SLEEP value.
But use Execute command activity to find for this file.
Since you need to find anywhere in the unix folder,use
Code: Select all
find / -name .done 2>/dev/null
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
Santosh
You can also use the Sequencer and Loop for your job. Inside your loop have the Wait for File and while running your job clear the file so that when next file comes it will be ready for next run.
You can also use the Sequencer and Loop for your job. Inside your loop have the Wait for File and while running your job clear the file so that when next file comes it will be ready for next run.
Regards
Siva
Listening to the Learned
"The most precious wealth is the wealth acquired by the ear Indeed, of all wealth that wealth is the crown." - Thirukural By Thiruvalluvar
Siva
Listening to the Learned
"The most precious wealth is the wealth acquired by the ear Indeed, of all wealth that wealth is the crown." - Thirukural By Thiruvalluvar
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: