How do I Create and Delete a Cron Job via cPanel

Published on
June 1, 2024

Managing Cron Jobs on via cPanel

Overview

This documentation outlines how to utilise the Cron Jobs tool in cPanel on HSJ.HOST to automate server tasks. Cron jobs are used to run specific commands or scripts at scheduled intervals.

Prerequisites

  • Access to cPanel on HSJ.HOST.
  • Proficient knowledge of Linux commands. Consult your hosting administrator to verify your script prior to creating a cron job.

For a deeper dive into cron, refer to:

  • Advanced Linux Information

Procedure

1. Creating a Cron Job

a. Access cPanel.

b. Navigate to the Advanced section and select "Cron Jobs."

Image Area: HSJ.HOST - Advanced - Cron Job

c. In the "Cron Email" section, ensure the email address is accurate. If not, input a correct email and tap "Update Email." This email will receive notifications after cron job completions.

Image Area: HSJ.HOST - Cron Email

d. In the "Add New Cron Job" section, utilise the "Common Settings" dropdown to select frequently used intervals, or manually determine the cron job's frequency using the adjacent dropdowns.

Image Area: Cron Job - Common Settings

e. Input the appropriate command in the "Command" field.

Image Area: Add New Cron Jobs - Command Field

f. Click "Add New Cron Job" to finalise.

2. Editing or Deleting a Cron Job

a. In cPanel's Advanced section, click on "Cron Jobs."

Image Area: HSJ.HOST - Advanced - Cron Job

b. Navigate to the "Current Cron Jobs" section.

c. Identify the cron job you wish to modify.

d. In the "Actions" column, select either "Edit" or "Delete" based on your needs.

Image Area: Edit or Delete Cron

Join our newsletter

Unlock Exclusive Offers Subscribe to Our Newsletter!

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.