Some website jobs need to happen on a schedule, not when someone visits. Clearing a cache every night, sending a weekly report, or checking a site for broken links are all examples. A cron job is a scheduled task that runs a command at a time you choose, without you having to be there.
The name comes from the Unix system that powers most cPanel servers. The cron system keeps a schedule and runs each task when its time arrives.
Open Cron Jobs
- Log in to cPanel.
- In the Advanced group, click Cron Jobs.

Set an Email for Results
Near the top of the page, type an email address in the Cron Email box and click Update Email. cPanel sends the output of each job to that address, which helps you spot failures. If you do not want a message every time a job runs, tell the command to send its output elsewhere, as explained in the next section.

Pick a Schedule
Use the Common Settings drop-down to choose a schedule, such as once a day or once an hour. Choosing one fills in the time boxes for you. For a custom schedule, type the values for minute, hour, day, month, and weekday yourself.

Add the Command
- In the Command box, type the full path to the script or command you want to run. For a script in your home directory, the path starts with a slash and your account name.
- Click Add New Cron Job.
Add /dev/null 2>&1 to the end of the command to stop cPanel from emailing you the output every time. This is useful for jobs that run often and rarely fail.

Check That the Job Runs
Your new job appears in the Current Cron Jobs list at the bottom of the page. Look at the email output or the file the job creates to confirm it ran. If nothing happens, check the path to the script and confirm the script has permission to run.

Be Careful With Delete Commands
A cron job runs without asking for confirmation. A command that deletes files will remove them on schedule, and it can delete your home directory data if the options are wrong. Test any delete command on a copy of your files first, and keep a backup.
Scheduled tasks put steady load on your account. If your site needs room for more of them, compare HoganHost’s cPanel shared hosting plans.



