the_hawk_1 has asked for the wisdom of the Perl Monks concerning the following question:
Hi fellow monks,
I've got a trouble with getting status, stopping and starting service on a remote server.
Right now, I can't event get the status!
Here is the code :
Where the VL04196 is the machine name and SendLogServer is the service. Here is what I've got has answer:#!/usr/local/bin/perl use strict; use warnings; $|=0; use Win32::Service; my %status; Win32::Service::GetStatus("VL94196",'SendLogServer', \%status); print "SendLogServer : ".$status{'CurrentState'}."\n";
Use of uninitialized value in concatenation (.) or string at Z:\Script +Perl\TMP\services.pl line 21.
Can you enlight me?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help needed with WIN32::Service
by BrowserUk (Patriarch) on Jun 28, 2010 at 17:52 UTC | |
by the_hawk_1 (Scribe) on Jun 28, 2010 at 18:27 UTC | |
by BrowserUk (Patriarch) on Jun 28, 2010 at 18:51 UTC | |
by the_hawk_1 (Scribe) on Jun 28, 2010 at 19:29 UTC | |
|
Re: Help needed with WIN32::Service
by NetWallah (Canon) on Jun 28, 2010 at 18:58 UTC | |
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 kejohm (Hermit) on Jun 28, 2010 at 23:18 UTC |