Cron Jobs Print

  • cPanel
  • 0

A cron job is a task that you schedule to run automatically at specific intervals. It allows you to automate repetitive tasks on your server. For example, you can use a cron job to back up a file every six hours.

To add a cron job in cPanel, follow these steps:

  1. Log in to cPanel.
  2. Open the Cron Jobs tool.                                                                                                                             cPanel - Advanced - Cron Jobs icon
  3. Under "Cron Email," enter the email address where you want to receive notifications.
  4. Under "Add New Cron Job," specify the interval for the command you want to run.
  5. In the "Command" text box, enter the command you want to run. Make sure to specify the full path to files in cron jobs.
  6. Click "Add New Cron Job" to create the cron job.

To edit a cron job in cPanel, follow these steps:

  1. Log in to cPanel.
  2. Open the Cron Jobs tool:                                                                                                                             cron jobs                                                                                                                        
  3. Under "Current Cron Jobs," click "Edit" for the cron job you want to edit.
  4. Make the desired changes and click "Edit Line" to save the changes.

To delete a cron job in cPanel, follow these steps:

  1. Log in to cPanel.
  2. Open the Cron Jobs tool:                                                                                                                                          cron jobs.png                                                                                                                                         
  3. Under "Current Cron Jobs," click "Delete" for the cron job you want to delete.
  4. Confirm the deletion, and cPanel will remove the cron job.

Remember to always double-check your cron job settings to ensure they are correct. Cron jobs are a powerful tool for automating tasks, but it's important to use them wisely and test them thoroughly to avoid any unintended consequences.


Was this answer helpful?

« Back