How to create a cron job in cPanel? Print

  • 1280

Cron Jobs run scheduled tasks at specific times. This is good to set up automated backups and or other unmanned server duties. To create a cron job, please do the following:

Standard:
1. Click Cron Jobs
2. Select Standard or Advanced ( The difference being is the standard only allows you to create a few cron jobs and the times are set up through drop down menus. The advanced section allows you to create unlimited cron jobs as well allows you to be very specific which when it runs.
3. In the input box to the right of “Command to run:” Type the path to the binary on the server for which the command you wish to run is located, The n add a space and provide the path to the file for the file for which you would like the command to run.
4. If standard is selected select the Minute(s), Hour(s),Day(s), Months(s), Weekday(s), for which you would like cron to run
5. Click the “Save Crontab” button

You have just created a standard cron job(s) to run a command on a file on a certain time and date.

Advanced:
1. The advanced tab works very similar. Instead of choosing time and date for which the commands will run from a drop down menu, you will place numbers in the input boxes to declare time and date. Please look online for further material.
2. Click Save “Cron Tab” button

You have just created a advanced cron job(s) to run a command on a file on a certain time and date.


Was this answer helpful?

« Back