----- Original Message -----
From: "Debbie Thomson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 07, 2001 8:08 PM
Subject: installing a Perl script as a service on NT
> Hi, all-
>
> Does anyone have any experience in installing a Perl script as a service
> under NT? I have a script that I converted to an executable using
> Perl2Exe. I'm trying to install it as a service under NT4 SP6a using
> instsrv.exe and srvany.exe from the Resource Kit, but it does not start
> my program. When I run my perl executable from a DOS prompt, it works
> great.
>
> Does anyone have any insight or suggestions for another way to
> accomplish this?
>
You can use the Win32::Daemon module.
ftp://ftp.roth.net/pub/ntperl/Daemon/20000319/Bin/ )
Dave Roth covers the use of the module in his new book "Win32 Perl
Scripting - The Administrator's Handbook"
http://www.roth.net/redirect/home.asp?source=Perl;key=rc_handbook ) and
has example scripts in the package.
You can place your script into the framework in the daemonx.pl script on
http://web.infoave.net/~ppopour/perl.html then recompile it.
It doesn't have a built in create function so you'll need to use the
create.pl script that comes with the package.
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin