ytjPerl has asked for the wisdom of the Perl Monks concerning the following question:
Thanks in advance!my ($hostname, $servicename, $entry); my (%status, @array); %status = ( 1 => 'Stopped', 2 => 'START_PENDING', 3 => 'STOP_PENDING', 4 => 'Started', 5 => 'CONTINUE_PENDING', 6 => 'PAUSE_PENDING', 7 => 'PAUSED', 8 => 'ERROR' ); Win32::Service::GetStatus('', $servicename, \%status); print MYFILE " ServiceStatus: ", $hostname, " ", $servicename, " + ", $status{$_}, " ","\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to print out windows service status
by choroba (Cardinal) on Jul 31, 2017 at 13:49 UTC | |
by ytjPerl (Scribe) on Jul 31, 2017 at 14:36 UTC | |
by haukex (Archbishop) on Jul 31, 2017 at 14:44 UTC | |
by ytjPerl (Scribe) on Jul 31, 2017 at 15:11 UTC | |
by poj (Abbot) on Jul 31, 2017 at 15:10 UTC | |
by ytjPerl (Scribe) on Jul 31, 2017 at 17:35 UTC | |
by poj (Abbot) on Jul 31, 2017 at 17:57 UTC | |
| |
|
Re: how to print out windows service status
by thanos1983 (Parson) on Jul 31, 2017 at 13:50 UTC |