Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: WMI with Perl

by LD2 (Curate)
on Mar 07, 2003 at 19:48 UTC ( #241241=note: print w/ replies, xml ) Need Help??


in reply to WMI with Perl

here's an example from the ASPN mailing lists:

#! perl -w use Win32::OLE; $instances = Win32::OLE->GetObject("winmgmts:")->InstancesOf("Win32_Process") or die "Cannot access WMI"; for my $proc (in $instances) { printf "%5d %7d %s\n", $proc->{ProcessId}, $proc->{WorkingSetSize}/1024, $proc->{Name}; }
haven't tested it to see if it works.

but as others said.. Google is your friend.


Comment on Re: WMI with Perl
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2014-09-18 07:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (108 votes), past polls