How to Handle Cron Jobs in cPanel

Cron jobs are tasks that run on their own at set times or intervals. Most of the time, they are run using a script file, and they can do a lot of things, like running scripts, sending emails, or doing maintenance work.

⚠️ Be careful: Running cron jobs too often can affect your LVE limits and may break fair usage rules.

Add an Email to Cron

The Cron Email feature lets you get emails every time your cron jobs run.

To set up email alerts:

  1. Type in the email address where you want to get notifications in the Email text box.

  2. To save the changes, click Update Email.

Turn Off Email Alerts

To stop getting email alerts for cron jobs:

Add a Job to Cron

To set up a new cron job:

  1. Set the cron job's interval by picking options from the menus or typing in the values you want.

    Common Settings: Automatically fills in the Minute, Hour, Day, Month, and Weekday fields with pre-set intervals. This is helpful if wildcards (*) and manual intervals are hard to understand.

  2. Set up the fields:

  3. Type the command you want the system to run in the Command text box.

⚠️ Important: Fill in all the required fields: Command, Minute, Hour, Day, Month, Weekday, and Command.

⚠️ Warning: When you use the rm command in a cron job, be very careful. If you choose the wrong options, you could lose important files in your home directory.

  1. To save it, click Add New Cron Job.

Look at the Cron Jobs that are Already There

The Current Cron Jobs table shows you all of your current cron jobs, along with their commands and schedules.

Change a Cron Job

To change a cron job that is already there:

  1. Find the cron job and click on it to change it.

  2. Make any necessary changes to the settings.

  3. To save your changes, click Edit Line.

Get Rid of a Cron Job

To get rid of a cron job:

  1. Click the Delete button next to the cron job you want to remove.

  2. To confirm the deletion, click Delete.

Need Help with Your Website?

Our Cyberin team is here to help you with cPanel and other hosting features if you need it.