How to Run Perl From a Cron
Cron is the name of a scheduling program in Linux that allows you to have programs and scripts run at pre-specified intervals. If you want a Perl script that you have written and stored on your computer, you can edit your Cron file (called the crontab) to have the Perl script run whenever you want it to.
Instructions
-
-
1
Log in to your Linux computer. Type "crontab -e" to open your crontab file in the built-in text editor.
-
2
Create a new line at the bottom of the Cron file by scrolling to the end of the file and pressing Enter.
-
-
3
Type "30 * * * * /yourPerlScript.sh" into the new line to have Cron run your Perl Script (/yourPerlScript.sh) every 30 minutes. You can edit the timing schedule if you wish, though this takes moderately advanced Linux skills to perform.
-
4
Press Ctrl and X to save the crontab file and close it.
-
1