in reply to Help needed with WIN32::Service
Perl strings require that the backslashes be doubled.
Try:
Most likely, 'SendLogServer' is not the short-name for the service you seek.Win32::Service::GetStatus("\\\\VL94196",'SendLogServer', \%status) or + die "Service status failed: $!"
The second parameter is the short name. You need to error-check the return, otherwise,$status{'CurrentState'} will be undef, and you will get the "uninitialized" warning.
Syntactic sugar causes cancer of the semicolon. --Alan Perlis
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Help needed with WIN32::Service
by the_hawk_1 (Scribe) on Jun 28, 2010 at 19:44 UTC | |
by NetWallah (Canon) on Jun 28, 2010 at 20:03 UTC | |
by the_hawk_1 (Scribe) on Jun 28, 2010 at 20:21 UTC | |
by NetWallah (Canon) on Jun 29, 2010 at 05:00 UTC | |
by the_hawk_1 (Scribe) on Jun 29, 2010 at 17:51 UTC | |
by kejohm (Hermit) on Jun 28, 2010 at 23:18 UTC |