Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Welcome to the Monastery
 
PerlMonks  

Re: How to install my Perl script as a Window service?

by ady (Deacon)
on Apr 18, 2007 at 05:29 UTC ( #610711=note: print w/ replies, xml ) Need Help??


in reply to How to install my Perl script as a Window service?

A fast cut/paste from :
ASPN

What is a Windows NT/200x/XP service? On Windows NT/200x/XP, a service is a special kind of executable progr +am that runs in the background. Services are used for programs that a +re constantly working, such as network protocols or database servers. + Most WWW servers on Windows NT/200x/XP are implemented as services. A service is different from other programs in several ways: Services aren't run interactively, although the NET START and NET STOP + commands can be used to start or stop a server. The Services control + panel is used to start, stop, or pause a service. Services don't act with the authority of the logged-in user. That mean +s that services can't see user environment variables or read files th +at are readable only by the logged-in user. You can set the account t +hat a service uses in the Services control panel. Services run even when no one is logged in to the machine. The most important thing to remember is that you have to take special +steps to make resources available to services. In general, you need t +o make files available to the Everyone group, and you have to have en +vironment variables (like PATH) be system environment variables. How do I run a Perl script as a Windows NT Service? You can run your Perl scripts as Windows NT Services via a program cal +led srvany.exe, which comes with the Windows NT Resource Kit. Once sr +vany.exe is installed, read the srvany.wri file which should be with +it. This document will explain how to set up registry entries for you +r new service. After you are set up, to run your script as a service do: x:>srvany perl script.pl 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 con +tain plenty of information on how to start the MMC and how you can us +e it for Perl scripts.

-- allan


Comment on Re: How to install my Perl script as a Window service?
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://610711]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2014-04-19 05:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (478 votes), past polls