Afficher un message
Vieux 11/11/2007, 21h17   #4
Aaron Saray
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to get to know if file is currently being written by another app?

On Nov 10, 9:46 am, alexan...@gmail.com wrote:
> I run some remote binary with php script in background. The binary
> creates some big files - a lot of files, they are being written 2
> days, one after another, by chunks.
>
> I output window where I display a list of these files by another php
> script. I must show only those of them that are COMPLETELY DONE. How
> can I do this?
>
> I don't have access to binary sources.
>
> OS is Solaris.


What if you checked out the 'flock' functions of PHP? You might be
able to lock the file, then check to see if they're locked by the
other script... etc.

  Réponse avec citation
 
Page generated in 0,04626 seconds with 9 queries