in reply to Re^2: Detect Process End
in thread Detect Process End
What you are trying to do is to keep running "ps -p $a" until you get a null output.
In order to do that, you need to look at the output of that command.
The "system" command does NOT provide the output.
The backticks ($info = `/bin/ps -p $a`) DO provide that, capturing the output into $info.
You then need to look for a null $info.
...each is assigned his own private delusion but he cannot see the baggage on his own back.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Detect Process End
by Anonymous Monk on Nov 29, 2004 at 02:13 UTC |