David Jacopille <[EMAIL PROTECTED]> wrote: [...] > While the foo.lock is a good idea I would still have to > somehow detect that the system's "Print Manager" is done > writing the file to know when to remove the foo.lock - which > means I'm back to needing the ability to ask ask when the > file is finished writing. If I can successfully do that I > wouldn't need the foo.lock.
What's your target OS? On Win32 you could try and do nasty things like trying to open a file for writing (in append mode) to find out if it's still being written to. On Linux, you might be able to move the destination file to another directory while it's still being written to. You could then chekc the directory to see when a new file is created, which would presumably mean that the spooler would be done with your file. Just my $0.02, Thomas -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>