Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 chanting in the Monastery: (8)
As of 2016-06-29 12:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (378 votes). Check out past polls.