How to avoid writing files that is used by other programs?

2004-08-06 Thread Shu Hung (Koala)
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

Re: How to avoid writing files that is used by other programs?

2004-08-06 Thread Gunnar Hjalmarsson
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

RE: How to avoid writing files that is used by other programs?

2004-08-06 Thread NYIMI Jose \(BMB\)
-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

Re: How to avoid writing files that is used by other programs?

2004-08-06 Thread Gunnar Hjalmarsson
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