in reply to Re: Install Proc::ProcessTable on windows by ppm
in thread Install Proc::ProcessTable on windows by ppm

Because when I try to kill a process using Proc::Killfam I get an error saying
Proc::ProcessTable missing, can't kill sub-children. at D:/Program Fil +es/Perl/site/lib/Proc/Killfam.pm line 22.
I didn't get any information regarding ppm installation of Proc::ProcessTable in CPAN. I just need the url of the site where i can get .ppd file of the module.

Replies are listed 'Best First'.
Re^3: Install Proc::ProcessTable on windows by ppm
by ZlR (Chaplain) on Jun 07, 2005 at 08:27 UTC
    You also need to have cygwin installed to make it work under Windows, as stated in the Proc::ProcessTable readme file.

    When i needed to do what killfam does (i.e : kill all sons of a given PID) i used Win32::PerfLib recursively to get a list of all sons of a pid and then called Win32::Process:KillProcess on the resulting list .

    Also it may be interesting to look at Win32::Job ( perl 5.8) since it allows job management :

      Windows 2000 introduced the concept of a ``job'': a collection of processes which can be controlled as a single unit. For example, you can reliably kill a process and all of its children by launching the process in a job, then telling Windows to kill all processes in the job. Win32::Job makes this feature available to Perl.

    ( from Win32::Job description ) .

    Cheers,
    zlr_