Shu Hung wrote:
I am writing a script to relocate some tar files in a folder.

Since those tar files are scheduled to be written daily, I want to
make sure I'm not moving any files which are being written by other
programs...

How can I do so?

You can lock them.

    perldoc -f flock
    perldoc -q "lock a file"

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to