in reply to find out, if process with $PID exists (under Windows!)
Yes.
if ( kill 0, $process_id) { print "process $process_id exists"; }
This works equally well for both true processes and AS pseudo-processes. See perlfunc:kill with a first arg of 0 for more details.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: find out, if process with $PID exists (under Windows!)
by ThorstenHirsch (Novice) on Apr 09, 2003 at 09:46 UTC |