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."
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.
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.
e. Input the appropriate command in the "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."
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.