in reply to Win32::Daemon::State returns a 0 or 1
I have used Win32::Service and it returns several codes that I use a hash to get a word based status.
Not sure what all Win32::Daemon returns. Maybe this gives you another option.my %statcodeHash = ( '1' => 'stopped', '2' => 'start pending', '3' => 'stop pending', '4' => 'running', '5' => 'continue pending', '6' => 'pause pending', '7' => 'paused' ); ... print "Status = $statcodeHash{$statusHash{"CurrentState"}}\n";
Jamie
UPDATE: fixed small spelling error
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Win32::Daemon::State returns a 0 or 1
by azaragoza (Acolyte) on Jan 05, 2009 at 22:36 UTC |
In Section
Seekers of Perl Wisdom