Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Using WMI in Perl

by PrakashK (Pilgrim)
on Mar 10, 2002 at 04:41 UTC ( #150666=note: print w/ replies, xml ) Need Help??


in reply to Using WMI in Perl

Check your print statement. You're printing "not running" when the value of $refService->{Started} is true.

Shouldn't it be like this?

print $refService->{Name} . " is " . ($refService->{Started} ? "" : "not ") . "running\n";
/prakash


Comment on Re: Using WMI in Perl
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2014-12-25 15:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (160 votes), past polls