Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

LostS's scratchpad

by LostS (Friar)
on Jun 03, 2004 at 15:17 UTC ( #360201=scratchpad: print w/ replies, xml ) Need Help??

#!e:/perl/bin/perl -w use strict; use warnings; use Win32::Process::Info; use Data::Dumper; my @processes = ("cogbootstrapservice.exe", "java.exe", "BIBusTKServerMain.exe", "bpfis.exe", "bpbkar32.exe"); my $pi = Win32::Process::Info->new ("server.domain.com", "WMI"); my @pids = $pi->ListPids (); # Get all known PIDs foreach my $pid (@pids) { my @info = $pi->GetProcInfo($pid); # print Dumper @info; my %info; foreach my $hash_ref (@info) { foreach (sort keys %{$hash_ref}) { foreach my $service (@processes) { if ($_ eq "Caption") { if (${$hash_ref}{$_} =~ /$service/ig) { print "$_ => ${$hash_ref}{$_}\n"; } } } } } }
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2014-10-21 02:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (95 votes), past polls