Hi all,
I am looking for the best way for checking when a tar file has finished his filling before open it. The Tar is created by another process. I need to find all tar files and untar all but only if the file has ended his creation.
I am using this way:
... while (1) { ... for my $tgz ( <*.tgz> ) { # wait 1 min for safety if Tar file would not finished the fill next unless time - (stat($tgz))[9] > 60; my @file = Archive::Tar->extract_archive($tgz, 1); ...
advices for a best way?
Thanks!
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |