Has anyone had success with Proc::Simple on Win32?

Has anyone had success with Proc::Simple on Win32?

am 10.09.2007 15:36:48 von Binod Pant

I am trying to use the Proc::Simple module in Win32, with no success.

I can go as far as launching a process, but anythign more than that seems
not to be working.

I am using Perl version 5.8.0 from ActiveState:
"perl, v5.8.0 built for MSWin32-x86-multi-thread"

A. The following works:
--------------------------
my $myproc = Proc::Simple->new(); # Create a new process object
$myproc->start($StartCmd." ".$CmdLineArgs); # Launch an external program

B. But the following does not:
-------------------------------
$myproc->kill();

Also, $myproc->poll() always returns 1, even if the process is already
killed.

Plus, the process ID returned by $myproc->pid is negative, and a
kill(0,$pid) does not work either.

Any help would be appreciated.

Re: Has anyone had success with Proc::Simple on Win32?

am 10.09.2007 20:43:57 von Sisyphus

"Binod Pant" wrote in message
news:fc3h9g$gr5$1@fred.mathworks.com...
>I am trying to use the Proc::Simple module in Win32, with no success.
>

I haven't tried that module.
Perhaps you'll have better success with Win32::Process (which you'll already
have).

Cheers,
Rob