Pause script until external app writes a file
Posted: Sat Dec 19, 2009 3:46 pm
My script directs the Filemaker API to write a file. This may take several seconds. Can I use a construct like to check if the file has been written?
If so, what should the wasteSomeTime() function contain?
--Doug
Code: Select all
while(!file_exists($myfile)) {
wasteSomeTime();
}
carry_on();
If so, what should the wasteSomeTime() function contain?
--Doug