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, the `open` command immediately returns control to the 
controlling process (the shell, or whatever else invoked it (pine etc)) 
without waiting for the `open`ed application to finish, or for that 
matter even to finish launching. 

If you're going to use acroread, then [a] you have to install it, and 
[b] you have to view the document in X11. Yuck. Surely that isn't really 
the best way to approach this, is it? I'd have thought that the `open` 
command was the perfect answer to this question...
 
    system('open', '/Applications/Preview.app');

etc.



-- 
Chris Devers
DO NOT LEAVE IT IS NOT REAL

Reply via email to