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.


Examine what is said, not who speaks.
1) When a distinguished but elderly scientist states that something is possible, he is almost certainly right. When he states that something is impossible, he is very probably wrong.
2) The only way of discovering the limits of the possible is to venture a little way past them into the impossible
3) Any sufficiently advanced technology is indistinguishable from magic.
Arthur C. Clarke.

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
    Thanks!!!