Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 musing on the Monastery: (5)
As of 2016-07-26 03:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (231 votes). Check out past polls.