Hello,
And Thank you for taking time to help me.Myself Hugz.I am new to
perl and want to write my own Scripts.But i can't understand how perl
"rename" function and "file locking" works.
Actually i am running a WinME with ActivePerl 5.8.0, what i want to
know is
1.What do you mean by "file creation (and deletion) is not atomic over
NFS" ?
2.What is NFS?
3.How do lock a File under Windows/Unix/Linux ?
4.How do you rename a file reliably on Windows/Unix/Linux ?
5.Why can't i use the following code to lock files ?
sleep(3) while -e "file.lock"; # PLEASE DO NOT USE
open(LCK, "> file.lock"); # THIS BROKEN CODE
Please help me in any possible way.
Thank You.