Check if file is being modified by another process

2007-07-04 Thread kyle . halberstam
Hi, I have an application that creates and writes to an output file I need to process. I need to process the file when it is completely written to. I do not initially know how big the file will be in the end. Further, the application does NOT put a write lock on the file while it is writing it.

Re: Check if file is being modified by another process

2007-07-04 Thread Chas Owens
On 7/4/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: snip What's the most efficient way of checking this? - one way is perhaps inifinite loop checking mmtime until it is stable for a certain amount of time?? I am not sure. snip Yep, that is about it. I usually use size rather than mtime

Re: Check if file is being modified by another process

2007-07-04 Thread Tom Phoenix
On 7/4/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have an application that creates and writes to an output file I need to process. I need to process the file when it is completely written to. I do not initially know how big the file will be in the end. Further, the application does NOT

Re: Check if file is being modified by another process

2007-07-04 Thread Chas Owens
On 7/4/07, Chas Owens [EMAIL PROTECTED] wrote: On 7/4/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: snip What's the most efficient way of checking this? - one way is perhaps inifinite loop checking mmtime until it is stable for a certain amount of time?? I am not sure. snip Yep, that is