Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by techman2006 (Beadle)
on Jul 06, 2014 at 13:59 UTC ( #1092471=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1092471]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (1)
As of 2023-09-21 22:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?