in reply to Re^2: how to print out windows service status
in thread how to print out windows service status
it is not getting from Win32::Service::GetStatus('', $servicename, \%status); ?
There is nothing in the documentation to indicate that. Based on the test file this seems to be how to use the module (untested since I'm not on windows at the moment):
my %services; Win32::Service::GetServices("", \%services); while ( my ($k,$v) = each %services ) { print "$k\t$v\n"; my %status; Win32::Service::GetStatus("", $v, \%status); while ( my ($k,$v) = each %status ) { print "\t$k\t$v\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: how to print out windows service status
by ytjPerl (Scribe) on Jul 31, 2017 at 15:11 UTC |