I am archiving the directory. There is a file in this directory that is being written by another process. When I use tar using the tar / Perl Tar module, there is an entry for the file in the archive, but the contents are null.
Before tar files ...
-rw-r
-rw-r
-rw-r
After a U-turn
-rw-r
-rw-r
-rw-r
How can I fix this problem? I want the file to be in the archive with the contents that it has at the time of archiving. This file may be a log file and assume that we cannot close the file descriptor before loading.
source
share