Introduction
You can create cron jobs directly in the cPanel interface with the following procedure.
Procedure
- Login to the cPanel account
- Click on the "Cron Jobs" icon which is under the Advanced section (Ask your hosting provider to enable this feature if it is missing)
- Under the "Common Settings" header you can select a commonly used rate at which your cronjob will run such as "Once per 5 minutes". This will automatically configure the cronjob time setting for you. If you would like to manually select the time period you are welcome to do so. The cron time specification is explained in depth in the man page.
- Under the "Command" header, enter the command that you would like to be run. Below are some examples:
To execute a bash script that you've written enter the following in the command text box:
bash /home/cpanelusername/full/path/to/your/bash/script.sh
For a Perl script you would use:
perl /home/cpanelusername/full/path/to/your/perl/script.pl
Python
python /home/cpanelusername/full/path/to/your/python/script.py
Comments
0 comments
Article is closed for comments.