Re: Waiting until Acrobat closes file

2006-06-10 Thread Tommy Nordgren
On 28 maj 2006, at 01.34, David Cantrell wrote: On Sun, May 28, 2006 at 12:27:02AM +0200, Tommy Nordgren wrote: My perl script generates pdf files, and opens them with Acrobat. How can I wait until Acrobat closes the file, so I can delete it? system('acroread', 'myfile.pdf');

Re: Waiting until Acrobat closes file

2006-06-10 Thread Joel Rees
Will it work to: a) Wait until Acrobat Reader is running b) Sleep long enough ... Instead of depending on timing, which will always get messed up when you can least afford it, get a list of the open files from the system. man lsof There should be better ways to get the file handle, but you