Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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?
Jar. Jar!...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2017-06-25 21:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (571 votes). Check out past polls.