Kraaijer Ronald wrote:
Hi,

I want to manage services on my Win NT 4 station using Win32::Service, but
somehow it doesn't do as asked.
Below a code snippet, the service Alerter is not started when I'm running
this.

Any Ideas?


use warnings;


use Win32::Service;
$hostName = "127.0.0.1";
$serviceName = "Alerter";
%status = "";
$ref = \%status;
Win32::Service::StartService($hostName ,$serviceName);

Win32::Service::GetStatus($hostName, $serviceName, $ref);


Hopefully that will provide a clue as to what the problem is.


Cheers,
Rob

--
Any emails containing attachments will be deleted from my ISP's mail server before I even get to see them. If you wish to email me an attachment, please provide advance warning so that I can make the necessary arrangements.


_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to