Look at your Active Perl html documentation
use Win32::Service;
You'll find the following fuctions:
All of the functions return FALSE (0) if they fail, unless otherwise noted.
If hostName is an empty string, the local machine is assumed.
StartService(hostName, serviceName)
Start the service serviceName on machine hostName.
StopService(hostName, serviceName)
Stop the service serviceName on the machine hostName.
GetStatus(hostName, serviceName, status)
Get the status of a service.
PauseService(hostName, serviceName)
ResumeService(hostName, serviceName)
GetServices(hostName, hashref)
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Craig
Cawood
Sent: Saturday, December 09, 2000 3:01 PM
To: [EMAIL PROTECTED]
Subject: Fw: Restarting a service
Hi guys,
I am writing a small little script for my own use on a server, it accepts a
domain name from a html page and then proceeds to make dns entries, virtual
hosting entries and mail off the domain registration.
I have two problems:
1) I can't restart services. I can get the PID's but I don't have access to
restart them!
2) I can't open/write to some files as I don't own them.. i need to lock
them I think
Any help will be appreciated as I'm rather newish to Perl.
Regards
--Craig
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl