ce7 has asked for the wisdom of the Perl Monks concerning the following question:

Dear perl monkeys, I started using the excellent PerfLib library (see http://www.bybyte.de/jmk/Perl5.asp) that provides a quick an very nice way to remotely display processes (kill them etc).

Problem: it only works for WinNT.
Does anyone know or can suggest any alternative method working in Win95/Win98? I need to list processes, or at least grab once, kill it and restart when necessary (not responding...).
Thanks
ce

Title edit by tye

  • Comment on processes on Win9x (PerfLib alternative)

Replies are listed 'Best First'.
Re: processes on Win9x
by Grygonos (Chaplain) on Jul 14, 2003 at 13:38 UTC
    I haven't tried this out.. but the WMI type of Win32 Process Info may be what works for you
Re: processes on Win9x
by MrCromeDome (Deacon) on Jul 14, 2003 at 13:42 UTC
    You may wish to look at the Proc:: namespace of modules. Proc::Background looks particularly promising. These have the added advantage of being cross-platform too.

    MrCromeDome

Re: processes on Win9x
by Limbic~Region (Chancellor) on Jul 14, 2003 at 14:44 UTC
    ce7,
    While the Perl Power Tools has the Unix Reconstruction Project, they are not doing ps. There is Proc::ProcessTable which has does handle Win32, but I have only used it on *nix. What I have done though is load a *nix toolkit on my Win32 platform. Consult the oracle for more details as there are a wide variety of choices. I personally use *nix for Windows.

    While I believe keeping things Perl is a good thing. Having the toolkit allows me to be able to use ps and others from the command line as well.

    Cheers - L~R

Re: processes on Win9x
by dws (Chancellor) on Jul 14, 2003 at 16:32 UTC
    Does anyone know or can suggest any alternative method working in Win95/Win98?

    As you've probably noticed, Win9x and WinNT come from different OS families. They're entirely different under the covers. Someone here might now better, but as far as I knew, the notion of user-manipulable processes wasn't fully articulated in Win9x.