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
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
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,
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