Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
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

In reply to Re: How to install my Perl script as a Window service? by ady
in thread How to install my Perl script as a Window service? by wxfjordan

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2022-10-06 23:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (29 votes). Check out past polls.

    Notices?