in reply to Re^2: DBD::WMI module installation problem
in thread DBD::WMI module installation problem

ActiveState Perl comes with Win32::OLE:

Q:\>perl -v This is perl, v5.8.3 built for MSWin32-x86-multi-thread (with 8 registered patches, see perl -V for more detail) Copyright 1987-2003, Larry Wall Binary build 809 provided by ActiveState Corp. http://www.ActiveState. +com ActiveState is a division of Sophos. Built Feb 3 2004 00:28:51 Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using `man perl' or `perldoc perl'. If you have access to + the Internet, point your browser at http://www.perl.com/, the Perl Home Pa +ge. Q:\>perl -MWin32::OLE -e1 Q:\>

So whatever you're trying to do, you're doing it wrong somehow. Most likely, the Perl you're starting is not the ActiveState Perl but the Linux Perl.

I already suggested using CIM, as also is suggested in the documentation of DBD::WMI.

As I found, Strawberry Perl does not come with Win32::OLE - I have to fix that, because Win32::OLE is (besides Win32::API) one of the important modules to have on Win32.

Replies are listed 'Best First'.
Re^4: DBD::WMI module installation problem
by Anonymous Monk on Aug 28, 2008 at 07:09 UTC
    I don't think activestate perl for linux comes with win32 modules (excluded from build)

      Ah - this would explain the confusion then. I was talking about ActiveState Perl for Windows, to be run under Wine. The OP seems to have installed ActiveState Perl for Linux, which can't use Win32::OLE for the (to me) obvious reason that Win32::OLE can only work on Windows or maybe on a Windowss emulator.

        So is there no way that we can monitor windows processes using WMI technology from linux ?

        Can you suggest me some good material ( site ) where I can get information on CIM

        Thanks,
        Srinivas