in reply to Waiting for delayed output after system()

A possible solution is to create a second file after you've closed the first. This second file would contain some specific string (possibly an MD5 checksum of the first). The client can wait for that second file to appear and then when it contains the string, it can open the first file, knowing that it's fully complete.
  • Comment on Re: Waiting for delayed output after system()