Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: I wish to monitor and react according to windows "Task Manager"

by moked (Beadle)
on Dec 29, 2004 at 10:22 UTC ( [id://417959]=note: print w/replies, xml ) Need Help??


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

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?
  • Comment on Re^2: I wish to monitor and react according to windows "Task Manager"

Replies are listed 'Best First'.
Re^3: I wish to monitor and react according to windows "Task Manager"
by Corion (Patriarch) on Dec 29, 2004 at 10:32 UTC

    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?

        I count four lines:

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

        and for me, using Windows 2000 and Perl 5.8.5, the snippet compiles without any problem. I'm using version 1.002 of Win32::Process::Info:

        C:\Projekte>perl -MWin32::Process::Info -e "die $Win32::Process::Info: +:VERSION" 1.002 at -e line 1, <DATA> line 164.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://417959]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-26 00:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found