Click here to get back home

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

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Has anyone had success with Proc::Simple on Win32? Binod Pant 09-10-2007
Posted by Binod Pant on September 10, 2007, 9:36 am
Please log in for more thread options


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.



Posted by Sisyphus on September 10, 2007, 2:43 pm
Please log in for more thread options



>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


Similar ThreadsPosted
Proc::Simple - Poll January 18, 2006, 1:52 pm
Proc::ProcessTable August 4, 2004, 9:00 am
Proc::ProcessTable size differences November 7, 2004, 12:17 am
Has the interface to Proc::PID_File changed? January 5, 2005, 4:49 am
ANNOUNCE: PTools-Proc-NWay May 11, 2007, 12:43 pm
Issues with Proc::ProcessTable module on Solaris 9 April 20, 2007, 8:02 am
Dave Roth's site (Win32::AdminMisc, Win32::ODBC, etc.) not available. December 22, 2005, 8:46 am
Problems installing Win32-Setupsup, Win32-CtrlGUI October 10, 2004, 12:31 am
Win32-PerfMon on Win32 October 26, 2004, 1:12 pm
XML::Simple Help? April 23, 2005, 5:09 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap