On Aug 4, 4:48 pm, [EMAIL PROTECTED] wrote:
> I have a perl script that sits and waits for socket connections and I
> want to make this into a windows XP service but Im unsure how to do
> this.
>
> activestate 
> athttp://aspn.activestate.com/ASPN/docs/ActivePerl/5.8/faq/Windows/Acti...
> says this little bit on how to do it:
>
>     "How do I run a Perl script as a Windows 200x/XP Service?
>
>     You can run your Perl scripts as Windows 200x/XP Services by
> accessing the Microsoft Management Console. The Windows 200x/XP help
> files contain plenty of information on how to start the MMC and how
> you can use it for Perl scripts."
>
> Which dosnt help me much and the Windows 200x/XP help files make me
> unlearn things theyre so bad.
>
> Also, Ive seen that there are some libraries like Win32::Service and
> Win32::Daemon, but the perldocs arent explaining what I need to know.
> Could I use these modules to make my perl script into a service?
>
> Is there an easy registry setting to set and make it load a perl
> script (I can call a perl script from a .bat file) as a service?
>
> Im looking for a book or a tutorial or, if its easy, a message on how
> to do this.
>
> Thanks

Ok. I found a really great method of doing this. It uses the
Win32::Daemon module. With activestate perl I was able to install like
this:

ppm install http://www.roth.net/perl/packages/win32-daemon.ppd

It does two things: some functions in it allow you to administer
services on your machine (like starting and stopping them). And the
other set of functions help you respond correctly to service
interrupts that windows sends all its services (like how to start, run
and stop).


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to