The stupid question is the question not asked | |
PerlMonks |
Re: Watching Creation File and send it to Serverby jlongino (Parson) |
on Nov 06, 2001 at 20:29 UTC ( [id://123609]=note: print w/replies, xml ) | Need Help?? |
Maybe I'm missing something here, but why can't you just
try to periodically assert an exclusive lock on the file?
If the application has finished writing the file you should
be able to do this. If the application doesn't release the
lock why would anyone guess that it is finished and try to
copy or rename the file? This could screw up the file and
possibly crash the application (unless you know the exact
nature of reads/writes/locks the application uses).
--Jim
In Section
Seekers of Perl Wisdom
|
|