XP is just a number | |
PerlMonks |
Re: Re: When is it safe to move a file?by kschwab (Vicar) |
on Jan 15, 2001 at 04:20 UTC ( [id://51833]=note: print w/replies, xml ) | Need Help?? |
Oh, I see. You are figuring the rename() updates
the mtime for the file. It doesn't, not on
any unix variant I've used, anyhow...
So, yes, the loop could of ended up running amock, but it could have run once and dropped out. Depends on the mtime of the file that was ftp'ed in and when the script was run. In any case, I added the sleep()...thanks again for the catch.
In Section
Seekers of Perl Wisdom
|
|