Beefy Boxes and Bandwidth Generously Provided by pair Networks
Frank There's more than one way to do things  how to tell if a
file is still being modified  by oylee (Pilgrim) on Sep 15, 2003
at 19:18 UTC ( #291634=perlquestion: print w/ replies, xml )
Need Help?? oylee has asked for the wisdom of the Perl Monks
concerning the following question:   Thanks for your help!
Comment on how to tell if a file is still being modified Re: how
to tell if a file is still being modified by halley (Prior) on
Sep 15, 2003 at 19:45 UTC      No easy way. No portable way.
Your method is about as good as I've found, if you can't
otherwise ask the OS about open files. Things like lsof on Linux
may help, but only on the same machine which is actually
regulating the filesystem; I can imagine certain network
filesystems like Samba or NFS hiding those details.      I made
a quickie script I call 'settle' which runs a shell command
repeatedly until the standard output or a given file ceases to
change. It offers a variable windo