Page 1 of 1

Pause script until external app writes a file

Posted: Sat Dec 19, 2009 3:46 pm
by doughemi
My script directs the Filemaker API to write a file. This may take several seconds. Can I use a construct like

Code: Select all

while(!file_exists($myfile)) {
wasteSomeTime();
}
carry_on();
 
to check if the file has been written?

If so, what should the wasteSomeTime() function contain?

--Doug

Re: Pause script until external app writes a file

Posted: Sat Dec 19, 2009 6:29 pm
by daedalus__