Run any Perl Script as a Windows Service with AlwaysUp

How to Run any Perl Script as a Windows Service with AlwaysUp

Kick off your Perl script when your PC boots; Re-run it periodically

To set up a Perl script to run as a Windows Service with AlwaysUp:

  1. Download and install AlwaysUp, if necessary.

  2. Download and install Perl, if necessary. A few of our customers use the free ActivePerl Community Edition. Make a note of where you have installed Perl as this folder will be used in a later step. We have used C:\Perl for this tutorial.

  3. Start AlwaysUp.

  4. Select Application > Add to open the Add Application window:

    Add Application

  5. On the General tab:

    • In the Application field, enter the full path to the Perl executable (perl.exe). This is C:\Perl\bin\perl.exe for our installation.

    • In the Arguments field, enter the full path to your Perl script. We want to run our sample script, C:\Perl\sample-script.pl.

    • In the Name field, enter the name that you will call this application in AlwaysUp. We have used My Perl Script but you can specify virtually anything you like.

    Perl Script Windows Service: General Tab

  6. Click over to the Logon tab and enter the user name and password of the account where you installed Perl. Please ensure that you can run your script successfully from that account.

    Perl Script Windows Service: LogOn Tab

  7. If you only want your script to run periodically (i.e. not 24/7), click over to the Restart tab and choose when to run. We would like our script to be run every day at 1 AM.

    Perl Script Windows Service: Restart Tab

  8. Click the Save button. In a couple of seconds, an application called My Perl Script will show up in the AlwaysUp window. It is not yet running though.

    Perl Script Windows Service: Created

  9. To start the Perl script, choose Application > Start "My Perl Script".

    Perl Script Windows Service: Running

  10. That's it! Next time your computer boots, the Perl script be launched immediately, before anyone logs on. We encourage you to explore the many other settings that may be appropriate for your environment.



Perl script not working properly as a Windows Service?

  • From AlwaysUp, select Application > Report Activity > Today... to bring up a HTML report detailing the interaction between AlwaysUp and your application. The AlwaysUp Event Log Messages page explains the more obscure messages.
  • Consult the AlwaysUp FAQ for answers to commonly asked questions and troubleshooting tips.
  • Contact us and we will be happy to help!

Download & Try it Free!

Download AlwaysUp and Run as a Service Today! Version 15.1 New!

7.9 MB Installer
Our 12,000+ customers include...
Compatible with Windows 11 Compatible with Windows Server 2022 Compatible with Windows 10
Over 94,000 installations, and counting!
 
AlwaysUp is number 1! Run as a Service with AlwaysUp

Rock-solid for the past 19+ years!