sdyates has asked for the wisdom of the Perl Monks concerning the following question:
Ok fine monks, let's see what I am doing wrong. I want to create a process, return any error messages then decide what to do next if I do not receive an error message.
I can initiate the process. However I am not sure how to do the following:
-waiting for the process to complete, then
-killing the process should it start to error
I was using system(), but Win32::Process seems to be a better way to go. But again, the application/process I am running creates a program error on certain files, waiting for an ok/cancel... if I see this I want to close it down... but first I must have the script to wait until the process is done, then get information on whether the process was successful
Does that sound clear?
Please advise kind Monks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32::Process handling
by Rich36 (Chaplain) on Jun 24, 2002 at 19:48 UTC | |
|
Re: Win32::Process handling
by Jenda (Abbot) on Jun 24, 2002 at 21:05 UTC | |
|
Re: Win32::Process handling
by boo_radley (Parson) on Jun 24, 2002 at 21:47 UTC |