in reply to I wish to monitor and react according to windows "Task Manager"

Using Super Search for task, and looking for posts by PodMaster, I found these two posts that should get you a long way towards your goal:

If you have further questions, you will have to post some code together with your question.

  • Comment on Re: I wish to monitor and react according to windows "Task Manager"

Replies are listed 'Best First'.
Re^2: I wish to monitor and react according to windows "Task Manager"
by moked (Beadle) on Dec 29, 2004 at 10:22 UTC
    I get an error about Win::OLE::const
    apearently one of the lines on the file is cousing an error
    I belive I am missing a file but I don't know which
    If any one can help?

      Where do you get the error? What is the exact text of the error? What is the exact code you are running?

      Please read How (Not) To Ask A Question.

      I will also need the exact version of Perl (perl -v tells you this). The Win32 modules do not work under any other operating system than Windows.

        for only these two lines:
        use Win32::Process::Info;
        #!/usr/bin/perl -w
        use strict;
        my $pi = Win32::Process::Info->new (undef, 'WMI');

        I get:
        Odd number of elements in anonymous hash at C:/Perl/lib/Win32/Process/Info.pm line 202.
        Can't locate object method "_Typelibs" via package "Win32::OLE::Const" at C:/Perl/lib/Win32/OLE/Cons t.pm line 20.
        Compilation failed in require at C:/Perl/lib/Win32/Process/Info/WMI.pm line 162.
        BEGIN failed--compilation aborted at C:/Perl/lib/Win32/Process/Info/WMI.pm line 162.
        Compilation failed in require at C:/Perl/lib/Win32/Process/Info.pm line 199. at C:\try7.pl line 6

        What culd be the cause?