in reply to Re: Check if file is written by other process
in thread Check if file is written by other process

Its an program which download files from some remote host. Also I can't control the way its right the data like writing a wrapper script etc.

The machine is Linux based so I can use INotify functionality with out any issues.

  • Comment on Re^2: Check if file is written by other process

Replies are listed 'Best First'.
Re^3: Check if file is written by other process
by Anonymous Monk on Jul 06, 2014 at 14:08 UTC

    Is the program open or closed source, and can you tell us what it is called? Does the program's documentation say anything about using, for example, flock(2), which Perl supports? Can you contact the author(s) of the program to ask if it supports any locking or other control mechanisms? Lastly, I were you, I'd maybe try to test out if it uses some kind of locking without it being documented - again, lsof can help you find that out.