A Cron job is a time-based job scheduler which is used to run a scheduled script. It is used to setup and maintains a software environment, you can setup this setting through your cPanel Cron job features. If you want to execute a particular task to perform at fixed times, dates or intervals.This article shows you how to create a Cron jobs in your cPanel. If you want to run a process like delete temporary files to free the disk space once in a week, you can do it by running some commands according to the time you set for the job. It will automatically delete the files once in a week. To create and delete Cron Jobs in cPanel, follow the below steps
Step 3: Enter the command and settings for creating new Cron Job and then click “Add New Cron Job”
Step 4: A successful message will be displayed for adding a cron job
Step 5: Click the button “Delete” to delete a Cron Job
Step 6: Confirm the deletion of Cron Job by clicking the option “Delete”
Step 7: Now the Cron Job is deleted successfully
Step 1 Login to cPanel, with the help of your domain URL. Other wise directly access our server URL.
Step 2 Click “Cron job” under “Advanced” to create your scheduled task to execute through command.
Step 3 Change the settings according to your needs, add command for your Cron job and then click Add New Cron Job to confirm your Cron on scheduled time intervals. To update the Cron jobs settings click here.
Step 4 Done. Now you have scheduled your Cron jobs at particular time intervals.
Step 5 To delete a Cron Job, click delete button.
Step 6 Now confirm the Delete option.
Step 7 Done, now the Cron job is deleted.
The advantage of Cron jobs:
Cron also used to take an automated cPanel backup. Here you just setup the day time and add the script once the Cron is set up means the daily backup will be executed automatically. Here you can just select the option and select the appropriate time interval and add a command to run a task. That must be the proper time format like a minute, hour, day, month, week of the day, and command to execute the Cron. While creating a Cron you might be entering the command with the appropriate menu it must be a single line. The shell commands automatically executes the Cron to the certain time format.
Video Tutorials