David Jacopille wrote:
I'm looking for some strategies to determine when other applications are finished writing a file. I've got a script printing page layout files to postscript in rapid fashion. I'd like to move the postscript to another location for some additional modifications as fast as possible. I can't figure out how to have my perl script NOT move those postscript files that are in the process of being written.
make foo.lock when you open foo to work on and remove foo.lock when you're done.
don't open it if the foo.lock exists
Search cpan for file and lock file tools
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>