Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Best way for testing the end of the filling of a Tar file before opening it.

by oiskuu (Hermit)
on Feb 06, 2014 at 23:58 UTC ( #1073781=note: print w/replies, xml ) Need Help??


in reply to Best way for testing the end of the filling of a Tar file before opening it.

You could try some advisory locking, flock or a lockfile, but the canonical solution is to rename a temp. file once it is complete.

The other process might create the archive in its build directory, then move it to queue directory. Unpacker process would periodically process the queue.

  • Comment on Re: Best way for testing the end of the filling of a Tar file before opening it.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2016-09-27 02:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (493 votes). Check out past polls.