Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://150666]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2016-12-04 16:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (68 votes). Check out past polls.