in reply to How to check a files Status?

Does the generator lock the file? You could check to see if the file is locked.

If you can, have the software package create the file in one directory, and rename it into the final directory when its done. Since rename is atomic, the file will be complete as soon as it appears in the final directory. The background process can even ask the system to notify it when the directory changes so that it can respond faster than once every 10 minutes.