Has anyone had success with Proc::Simple on Win32?
am 10.09.2007 15:36:48 von Binod PantI 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.