Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: Waiting for a file to be written

by SuicideJunkie (Vicar)
on Oct 14, 2008 at 16:33 UTC ( [id://717032]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Waiting for a file to be written
in thread Waiting for a file to be written

Trivial 2-party locking mechanism:
Why not have the child delete the file when it is finished with it?
The parent can then wait for the file to disappear before creating the next version of it.

Replies are listed 'Best First'.
Re^4: Waiting for a file to be written
by jfroebe (Parson) on Oct 14, 2008 at 20:51 UTC

    Another option would be to use Linux::Inotify2 if the operating system is Linux. The trigger would be on IN_CLOSE_WRITE "writable fd to file / to object was closed". :)

    Jason L. Froebe

    Blog, Tech Blog

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-03-29 12:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found