RE: Window Services - stop/start (Newbie)...
Hi, I just tried to install both modules (Win32::Service Win32::Lanman). Get the message that I am using the wrong build of Perl. Both files were downloaded from CPAN. Didn't see a make.pl file, but did see an install.pl file. Ran that file and get the error message above. Do I need to create a make.pl file to install the module? Or am I missing something very simple? I am using ActiveState Perl 5.6.1 Build 633. I copied this from the command prompt...using Windows NT 4.0. *** E:\perl -v This is perl, v5.6.1 built for MSWin32-x86-multi-thread (with 1 registered patch, see perl -V for more detail) Copyright 1987-2001, Larry Wall Binary build 633 provided by ActiveState Corp. http://www.ActiveState.com Built 21:33:05 Jun 17 2002 Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using `man perl' or `perldoc perl'. If you have access to the Internet, point your browser at http://www.perl.com/, the Perl Home Page. *** Thanks. Alex -- From: Timothy Johnson[SMTP:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 4:34 PM To: 'Yuen, Alex'; 'Perl Beginners' Subject: RE: Window Services - stop/start (Newbie)... Check out Win32::Service or Win32::Lanman. Lanman is a whole lot to chew, but it can do just about anything involving remote administration of NT/2000/XP machines. -Original Message- From: Yuen, Alex [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 1:33 PM To: 'Perl Beginners' Subject: Window Services - stop/start (Newbie)... Hi, Does anyone know if Perl can stop or start a Service in Windows NT or 2000? Trying to write a script to stop the Service of an application, archive the log files and then restart the Service. Plus, record this transaction to a seperate log file. Another plus, send out an e-mail notification if an error were to occur in any step of the Perl script. Haven't decided to attach the log to the e-mail or not. But would be using Mime::Lite for this. Thanks. Alex -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Window Services - stop/start (Newbie)...
Why don't you install it via PPM? If it's not in the Activestate repository, you can install it using Dave Roth's PPM repository. PPM set repository dave http://www.roth.net/perl/packages PPM set save PPM install win32-service For Win32::Lanman (and many other useful modules), use Jenda's repository: http://jenda.krynicky.cz/perl -Original Message- From: Yuen, Alex [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 11:50 AM To: 'Perl Beginners' Subject: RE: Window Services - stop/start (Newbie)... Hi, I just tried to install both modules (Win32::Service Win32::Lanman). Get the message that I am using the wrong build of Perl. Both files were downloaded from CPAN. Didn't see a make.pl file, but did see an install.pl file. Ran that file and get the error message above. Do I need to create a make.pl file to install the module? Or am I missing something very simple? I am using ActiveState Perl 5.6.1 Build 633. I copied this from the command prompt...using Windows NT 4.0. *** E:\perl -v This is perl, v5.6.1 built for MSWin32-x86-multi-thread (with 1 registered patch, see perl -V for more detail) Copyright 1987-2001, Larry Wall Binary build 633 provided by ActiveState Corp. http://www.ActiveState.com Built 21:33:05 Jun 17 2002 Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using `man perl' or `perldoc perl'. If you have access to the Internet, point your browser at http://www.perl.com/, the Perl Home Page. *** Thanks. Alex -- From: Timothy Johnson[SMTP:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 4:34 PM To: 'Yuen, Alex'; 'Perl Beginners' Subject: RE: Window Services - stop/start (Newbie)... Check out Win32::Service or Win32::Lanman. Lanman is a whole lot to chew, but it can do just about anything involving remote administration of NT/2000/XP machines. -Original Message- From: Yuen, Alex [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 1:33 PM To: 'Perl Beginners' Subject: Window Services - stop/start (Newbie)... Hi, Does anyone know if Perl can stop or start a Service in Windows NT or 2000? Trying to write a script to stop the Service of an application, archive the log files and then restart the Service. Plus, record this transaction to a seperate log file. Another plus, send out an e-mail notification if an error were to occur in any step of the Perl script. Haven't decided to attach the log to the e-mail or not. But would be using Mime::Lite for this. Thanks. Alex -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Window Services - stop/start (Newbie)...
Tim, Thanks for this information. I managed to install Win32::Lanman using PPM. But I still got an error message installing Win32::Service. I'm going to see how difficult Lanman is before racking my head with Win32::Service. But here is the error I got if anyone is interested. :) * E:\ppm PPM interactive shell (2.1.6) - type 'help' for available commands. PPM set repository dave http://www.roth.net/perl/packages PPM set save PPM install win32-service Install package 'win32-service?' (y/N): y Installing package 'win32-service'... Error installing package 'win32-service': Read a PPD for 'win32-service', but it is not intended for this build of Perl (MSWin32-x86-multi-thread) PPM quit Quit! * Thanks. Alex -- From: Timothy Johnson[SMTP:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 4:13 PM To: 'Yuen, Alex'; 'Perl Beginners' Subject: RE: Window Services - stop/start (Newbie)... Why don't you install it via PPM? If it's not in the Activestate repository, you can install it using Dave Roth's PPM repository. PPM set repository dave http://www.roth.net/perl/packages PPM set save PPM install win32-service For Win32::Lanman (and many other useful modules), use Jenda's repository: http://jenda.krynicky.cz/perl -Original Message- From: Yuen, Alex [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 11:50 AM To: 'Perl Beginners' Subject: RE: Window Services - stop/start (Newbie)... Hi, I just tried to install both modules (Win32::Service Win32::Lanman). Get the message that I am using the wrong build of Perl. Both files were downloaded from CPAN. Didn't see a make.pl file, but did see an install.pl file. Ran that file and get the error message above. Do I need to create a make.pl file to install the module? Or am I missing something very simple? I am using ActiveState Perl 5.6.1 Build 633. I copied this from the command prompt...using Windows NT 4.0. ** ** *** E:\perl -v This is perl, v5.6.1 built for MSWin32-x86-multi-thread (with 1 registered patch, see perl -V for more detail) Copyright 1987-2001, Larry Wall Binary build 633 provided by ActiveState Corp. http://www.ActiveState.com Built 21:33:05 Jun 17 2002 Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using `man perl' or `perldoc perl'. If you have access to the Internet, point your browser at http://www.perl.com/, the Perl Home Page. ** ** *** Thanks. Alex -- From: Timothy Johnson[SMTP:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 4:34 PM To: 'Yuen, Alex'; 'Perl Beginners' Subject:RE: Window Services - stop/start (Newbie)... Check out Win32::Service or Win32::Lanman. Lanman is a whole lot to chew, but it can do just about anything involving remote administration of NT/2000/XP machines. -Original Message- From: Yuen, Alex [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 1:33 PM To: 'Perl Beginners' Subject: Window Services - stop/start (Newbie)... Hi, Does anyone know if Perl can stop or start a Service in Windows NT or 2000? Trying to write a script to stop the Service of an application, archive the log files and then restart the Service. Plus, record this transaction to a seperate log file. Another plus, send out an e-mail notification if an error were to occur in any step of the Perl script. Haven't decided to attach the log to the e-mail or not. But would be using Mime::Lite for this. Thanks. Alex -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Window Services - stop/start (Newbie)...
It looks like you might want to do a full uninstall/reinstall of ActivePerl and see if that clears it up. -Original Message- From: Yuen, Alex [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 1:33 PM To: 'Perl Beginners'; 'Timothy Johnson' Subject: RE: Window Services - stop/start (Newbie)... Tim, Thanks for this information. I managed to install Win32::Lanman using PPM. But I still got an error message installing Win32::Service. I'm going to see how difficult Lanman is before racking my head with Win32::Service. But here is the error I got if anyone is interested. :) * E:\ppm PPM interactive shell (2.1.6) - type 'help' for available commands. PPM set repository dave http://www.roth.net/perl/packages PPM set save PPM install win32-service Install package 'win32-service?' (y/N): y Installing package 'win32-service'... Error installing package 'win32-service': Read a PPD for 'win32-service', but it is not intended for this build of Perl (MSWin32-x86-multi-thread) PPM quit Quit! * Thanks. Alex -- From: Timothy Johnson[SMTP:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 4:13 PM To: 'Yuen, Alex'; 'Perl Beginners' Subject: RE: Window Services - stop/start (Newbie)... Why don't you install it via PPM? If it's not in the Activestate repository, you can install it using Dave Roth's PPM repository. PPM set repository dave http://www.roth.net/perl/packages PPM set save PPM install win32-service For Win32::Lanman (and many other useful modules), use Jenda's repository: http://jenda.krynicky.cz/perl -Original Message- From: Yuen, Alex [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 11:50 AM To: 'Perl Beginners' Subject: RE: Window Services - stop/start (Newbie)... Hi, I just tried to install both modules (Win32::Service Win32::Lanman). Get the message that I am using the wrong build of Perl. Both files were downloaded from CPAN. Didn't see a make.pl file, but did see an install.pl file. Ran that file and get the error message above. Do I need to create a make.pl file to install the module? Or am I missing something very simple? I am using ActiveState Perl 5.6.1 Build 633. I copied this from the command prompt...using Windows NT 4.0. ** ** *** E:\perl -v This is perl, v5.6.1 built for MSWin32-x86-multi-thread (with 1 registered patch, see perl -V for more detail) Copyright 1987-2001, Larry Wall Binary build 633 provided by ActiveState Corp. http://www.ActiveState.com Built 21:33:05 Jun 17 2002 Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using `man perl' or `perldoc perl'. If you have access to the Internet, point your browser at http://www.perl.com/, the Perl Home Page. ** ** *** Thanks. Alex -- From: Timothy Johnson[SMTP:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 4:34 PM To: 'Yuen, Alex'; 'Perl Beginners' Subject:RE: Window Services - stop/start (Newbie)... Check out Win32::Service or Win32::Lanman. Lanman is a whole lot to chew, but it can do just about anything involving remote administration of NT/2000/XP machines. -Original Message- From: Yuen, Alex [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 1:33 PM To: 'Perl Beginners' Subject: Window Services - stop/start (Newbie)... Hi, Does anyone know if Perl can stop or start a Service in Windows NT or 2000? Trying to write a script to stop the Service of an application, archive the log files and then restart the Service. Plus, record this transaction to a seperate log file. Another plus, send out an e-mail notification if an error were to occur in any step of the Perl script. Haven't decided to attach the log to the e-mail or not. But would be using Mime::Lite for this. Thanks. Alex -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Window Services - stop/start (Newbie)...
Check out Win32::Service or Win32::Lanman. Lanman is a whole lot to chew, but it can do just about anything involving remote administration of NT/2000/XP machines. -Original Message- From: Yuen, Alex [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 1:33 PM To: 'Perl Beginners' Subject: Window Services - stop/start (Newbie)... Hi, Does anyone know if Perl can stop or start a Service in Windows NT or 2000? Trying to write a script to stop the Service of an application, archive the log files and then restart the Service. Plus, record this transaction to a seperate log file. Another plus, send out an e-mail notification if an error were to occur in any step of the Perl script. Haven't decided to attach the log to the e-mail or not. But would be using Mime::Lite for this. Thanks. Alex -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Window Services - stop/start (Newbie)...
Try Win32::Service. Functions of interest are: StopService($hostName, $svcName); StartService($hostName, $svcName); PauseService($hostName, $svcName); ResumeService($hostName, $svcName); You can execute any of the functions of this module on remote-servers attached to the same network that you are and you should have ADMINISTRATOR level privileges on those machines so as to control their services, via remote-registry. Cheers, Rex --- Yuen, Alex [EMAIL PROTECTED] wrote: Hi, Does anyone know if Perl can stop or start a Service in Windows NT or 2000? Trying to write a script to stop the Service of an application, archive the log files and then restart the Service. Plus, record this transaction to a seperate log file. Another plus, send out an e-mail notification if an error were to occur in any step of the Perl script. Haven't decided to attach the log to the e-mail or not. But would be using Mime::Lite for this. Thanks. Alex -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]