Page 1 of 1

Wait for file

Posted: Fri Jan 30, 2009 10:23 am
by vinothkumar
Hi,
I have to start a sequence repeatedly if any file arrives at a particular location. I tried to do by using a WaitForFile stage by giving the file name as *.*. It is not working. How can we do this ?

Re: Wait for file

Posted: Fri Jan 30, 2009 10:33 am
by betterthanever
[quote="vinothkumar"]Hi,
I have to start a sequence repeatedly if any file arrives at a particular location. I tried to do by using a WaitForFile stage by giving the file name as *.*. It is not working. How can we do this ?[/quote]

did you give the complete path in the file name ??

Re: Wait for file

Posted: Fri Jan 30, 2009 10:55 am
by vinothkumar
I gave full path. Instead of giving file name I gave *.*.
But it didnt work..

I gave xx/xx/*.*

Re: Wait for file

Posted: Fri Jan 30, 2009 12:30 pm
by betterthanever
[quote="vinothkumar"]I gave full path. Instead of giving file name I gave *.*.
But it didnt work..

I gave xx/xx/*.*[/quote]

i presume that you compiled the job and ran the job so that the job waits till any file available in the specified path

is that what you are doing???

Re: Wait for file

Posted: Fri Jan 30, 2009 12:37 pm
by vinothkumar
Even I keep any dummy file in that location to test, it is not working. If we give exact file name in Wait for File stage it is working.

Re: Wait for file

Posted: Fri Jan 30, 2009 1:01 pm
by betterthanever
[quote="vinothkumar"]Even I keep any dummy file in that location to test, it is not working. If we give exact file name in Wait for File stage it is working.[/quote]

since it searches for the name of the file name literally...that is why it is waiting...

Posted: Fri Jan 30, 2009 2:52 pm
by ray.wurlod
Create a server routine that can wait for *.* or timeout, and use a Routine activity rather than a Wait For File activity.

Posted: Mon Feb 02, 2009 6:48 pm
by chulett
Just to nit pick, in UNIX *.* won't match any file like it would on Windows, it will match any file with a "dot" in the name. Stick with a single asterisk in your routine.