KarthikBabu has asked for the wisdom of the Perl Monks concerning the following question:

Hello Everyone, I'm trying make my perl script to run as windows service( for 2k/2k3). I tried making the script to .exe using perl2exe, and then used instsrv command line utility to install my script as a service. I was successfully able to install it as a service. But unfortunately the service is not able to start. I'm getting an error "Error 1053: The Service did not respond to the start or control request in a timely fashion" for whatever perl scripts i tried. Any help is much appreciated. Thanks & regards Karthik Babu

Replies are listed 'Best First'.
Re: Perl Script as a Windows Service
by andreas1234567 (Vicar) on Jun 07, 2007 at 12:11 UTC
    Take a look at Win32::Daemon. This question has been asked frequently before, e.g. here and here. Super Search is your friend.
    --
    print map{chr}unpack(q{A3}x24,q{074117115116032097110111116104101114032080101114108032104097099107101114})