by Zythan on Sun Mar 07, 2010 3:01 pm
Hello,
This is the experience that I have had and the solutions are not difficult to put into place.
You have a file that is called 'downloadthis.file', your script must not pick-up the file if the file has not been fully written by the progam that creates it.
So either, you get the program to create the file under a 'temp' name, ie 'downloadthis.tmp' and when fully written, it changes the name of the 'temp' file to the final name.
Or you modify your program to create a second file, like 'finished.ok', your script should then look for the '.ok' file, if it exists then it downloads the 'downloadthis.file', then deletes the '.ok' file.
This should stop things 'stepping on each others toes' as it were.
Regards.
Zythan