By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,852 Members | 1,426 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,852 IT Pros & Developers. It's quick & easy.

Get current lock on a file

P: 1
Hi,
I'm currently facing a technical issue with a perl script that copies the files from one (source) directory to another (destination) directory.

Requirement: Files land in the source directory by an external FTP process and my script just need to copy the files from the source directory whenever it sees one over there.

Issue: My script copied the file that was not fully loaded by the FTP process.

Issue probability: 1%. It happened only once after 6 months of this script implementation.

So, could any one of you please help me out on how to handle this? Your help on this is much appreciated.
Jan 7 '08 #1
Share this Question
Share on Google+
1 Reply


eWish
Expert 100+
P: 971
I would suggest that you have a look at the Fcntl module if you are using a script to do the uploading via FTP. If you are using an FTP client then I would check and see the there an option for locking file until the transfer is complete.

--Kevin
Jan 16 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.