Using Perl Dev Kit to make perl script a service....

Posted on 2006-04-26
Last Modified: 2010-08-05
I have a Perl script that I want to convert to a service. If I sent the script to someone could they assist me in adding the right code to compile it as a service? I would paste the script up here but its relatively long. If someone could post just what I need to add to the script that would be great also.
Question by:bneese
    LVL 19

    Expert Comment

    Have you looked here? You should be able to run a prer script as a windows servcice without the need for the dev kit.


    Author Comment

    Yeah, I don't really want to use the srvany.exe I have read that there are drawbacks to using it. Plus its not that good on Windows 2003 from what I have read. I think using the Perl Dev kit is my best choice. I just need a little help getting started. But thanks for the idea.
    LVL 19

    Accepted Solution

    But srvany.exe is only for windows NT. What about using  Microsoft Management Console. (haven't tried it myself so perhaps this still calls srvany.exe at a lower level)
    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.
    LVL 17

    Assisted Solution

    Take a look at Roth Consulting's Win32::Daemon (see  You might also take a peek at Win32::Daemon::Simple  

    Or, for a completely different way of approaching the issue, you might try FireDaemon (see  This is a wonderful program for running Windows programs as services...

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
    There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    731 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now