Hostreek.com

How to Set up Cron Job in cPanel?

In this article, we will tell you how to configure the cron job in cPanel through the below steps-

What is Cron Job?

A cron job is a Linux command used to schedule any tasks to run automatically at specific intervals. For example, if you want to back up a file every day, you can easily set it up using the cron jobs feature of cPanel.

How to add cron job in cPanel?

You can add cron job by following these steps-

Step 1: Log in to cPanel

  • Click here to log in to your account
  • My product and services
  • Tap on that service that cPanel you want to log in
  •  In action, you will get the “Log in to cPanel” option

Step 2: Click on Cron Jobs in the Advanced section of cPanel

Step 3: under Cron Email, If you would like to receive an email notification that your cron job is working enter your email address and click Update Email.

  • If you do not want an email to be sent for an individual cron job, you can redirect the command’s output to /dev/null. For example: mycommand >/dev/null 2>&1

Step 4: In the section of  “Add new cron job“, select the cron under the Common Setting you want to run (If you select any interval option under common Settings, cPanel automatically populates the below values)

Step 5: In the Command text box, enter the command you want to run

Step 6: Then, click the ‘Add New Cron Job‘ button

Done! Hope this article will be useful for you.

Leave a Reply

Your email address will not be published. Required fields are marked *