How to set-up a cron job

This tutorial is going to show you how to setup a cron job in cPanel the easy way. You can set a command or script to run at a specific time every day, week, month etc. This tutorial will assume that you are already logged into your cPanel. If you are having problems doing that or don't know how, please view the tutorial named: How to log into cPanel.

On the main page of your cPanel scroll down to the section named advanced and click on the link named cron jobs. At the main cron job page it lists two different experience levels to choose from: Standard and Advanced (Unix style), this tutorial is using the standard approach.

Click on the standard button to take you to a screen showing a standard cron manager. Every time a cron job runs, the results are sent to an email address. The top line asks for the email address where you would like the cron job results sent. Enter that address into the box.

Below is a box marked Entry 1, the first line is command to run: with a box after. In the box you need to enter the command of the script you want to run, including the path (all the way from root).

For example, a command might look like this: "home/abc123/public_html/cgi-bin/clients.cgi" This command includes the entire path all the way from the root directory.

Next, we need to specify the timing of the cron. We need to determine when and how often we want the script to run. There are boxes with different listings above them:

  • Minute(s)
  • Hour(s)
  • Day(s)
  • Month(s)
  • Weekday(s)

Using the information within each box set the time, day, month and day of the week you want your cron to run. When it is all set click the save crontab button. This will take you to a confirmation screen that will verify that your cron job has been set. Click on the go back link.

To return to the standard cron manager at any time, click on the standard button on the main cron job page. You can edit your cron or delete it entirely by simply clicking on the delete button in the entry box. You can also set up additional cron jobs

You now know how to set-up cron jobs the easy way and then edit them, delete them or add additional ones. You can add as many as you wish but REMEMBER, cron jobs have the potential to take up a lot of server resources.

You can now click the home link in the upper left corner and return to the main cPanel page or to exit cPanel use the logout link in the upper right corner. Remember, if you are using a public computer, ALWAYS logout of cPanel before closing.

For additional assistance, contact us by submitting a support ticket.

Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Quick Navigation

Client Login:



Remember Me