Korvin has asked for the wisdom of the Perl Monks concerning the following question:

Hello there, I'm a web developer over here in Oregon with some Perl experience although I deal mostly in PHP these days. I've recently noticed that my dedi is perl enabled, which makes some previous projects that have been on hold due to my inability to code shell possible. My question is this:

How can I have a Perl script run in the background of my server?

My hope is to have a report automatically created and saved in sql for around 50 accounts on their respective recur dates without any frontend triggering.

  • Comment on Perl running on a linux cpanel enabled server

Replies are listed 'Best First'.
Re: Perl running on a linux cpanel enabled server
by Anonymous Monk on Sep 15, 2011 at 18:37 UTC
    Log in to the server with SSH, then at the shell prompt run:

    perl path/to/the/program &
    The & puts any program in the background. You can log out and it keeps running. See bash job control.

    If you want to periodically run a program, learn about cron.