Waiting until Acrobat closes file

2006-05-27 Thread Tommy Nordgren
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? -- "Home is not where you are born, but where your heart finds peace" - Tommy Nordgren, "The dying old crone" [EMAI

Re: Waiting until Acrobat closes file

2006-05-27 Thread David Cantrell
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'); unlink('myfile.pdf'); if instead you're doing something

Re: Waiting until Acrobat closes file

2006-05-27 Thread Chris Devers
On Sun, 28 May 2006, David Cantrell wrote: > if instead you're doing something like ... > > system('open', '/Applications/Acrobat.app'); > > then you'll need to: > > wait around until Acrobat appears in the process table; > wait around until that PID disappears; Really?? In my experience,

Re: Waiting until Acrobat closes file

2006-05-27 Thread Joel Rees
if instead you're doing something like ... system('open', '/Applications/Acrobat.app'); then you'll need to: wait around until Acrobat appears in the process table; wait around until that PID disappears; Really?? In my experience, the `open` command immediately returns control to the con