How do you run a perl script as a windows service?
I have a script that gathers all sort of data and then relays them to a server, but I need to run this as a system service in order to report data all the time.
This perl script uses srvany and
instsrv (two free programs from
Microsoft; put on my perlmonk.org
website for ease of linking) to
install a perl script as a Windows
NT/2000/XP service.
In the comments on the same page there a some interesting options:
I prefer to compile my scripts with
perl2exe and install the binary as a
service. I've used instsrv and srvany,
but I prefer to use the freely
available FireDaemon.
and
You might also consider Win32::Daemon for a pure-perl solution.
As alternative you could also try ExeService, a program which allows you to run executables, scripts and commands as Windows Services.
You could try the procedure descibed on this page:
Install a perl script as a Win NT/2000/XP service.
In the comments on the same page there a some interesting options:
and
As alternative you could also try ExeService, a program which allows you to run executables, scripts and commands as Windows Services.