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?
Thanks a lot
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
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
-Original Message-
From: Gunnar Hjalmarsson [mailto:[EMAIL PROTECTED]
Sent: Friday, August 06, 2004 10:49 AM
To: [EMAIL PROTECTED]
Subject: Re: How to avoid writing files that is used by other
programs?
Shu Hung wrote:
I am writing a script to relocate some tar files in a
Nyimi Jose ) wrote:
Gunnar Hjalmarsson wrote:
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