Attempt to use Win32::Process::Open( my $handle, $pid, 0 ); to obtain a handle to the running process. If the call succeeds, it is still running.
You could also avoid having to poll the process by using $handle->Wait( $timeoutms ); to wait until it ends (or the timeout occurs) and then $handle->Kill( $exitcode ) to kill it if it runs too long.
In reply to Re^5: Simple way to find on Windows, whether a process is running
by BrowserUk
in thread Simple way to find on Windows, whether a process is running
by rovf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |