Hello Friends !!

Today I will share with you about cPanel and its advanced feature Cron Job.
First of all what is cPanel ?

CPanel is a fully featured web-based control panel that allows you to manage your domain through a web interface. The idea is to transfer as much of the control and responsibility of managing your web site to you. You have the ability to manage all aspects of e-mail, files, backup, FTP, CGI scripts, and web site statistics.

Now what is Cron Job ?

A cron job allows you to run a certain command at times set by the job. For example, if you want to execute one file at midnight 12.00 then you can set time using cron job. There is an advanced feature in cPanel from where you have to write only one command and full path of the file whcih want to execute.

Don’t be confused. I give you support step by step.

When you login in cPanel, Please click on the icon for cronjob. (See below image).

cron

Then there are two modes for Cron Job.

1) Standard Cron Manager
2) Advanced (UNIX Style) Cron Jobs Mod

click here for more details.

Standard Cron Manager

The Standard mode provides a range of pre-set options that you can choose. This is the simplest method and is recommended. See below image.

standard

Adding a cron job in standard mode

  • To access the Cron Jobs Menu, click on the corresponding icon located on the main screen of your cPanel interface.
  • Click on Standard to access the Standard Cron Manager.
  • Enter the email address where the cron output will be sent to in the corresponding field.
  • Enter the command you wish the cron job to run in the blank field next to the Command to run label.
  • Select how often you wish the command to be run by selecting an option in each of the boxes.
  • Click on Save Crontab to save your changes and set up your cron job.

Thats it. Your cron job is added.

Deleting a cron job in standard mode

When a cron job is no longer needed, you should delete it so the command will not continue to run.

  • To access the Cron Jobs Menu, click on the corresponding icon located on the main screen of your cPanel interface.
  • Click on Standard to access the Standard Cron Manager.
  • Click on the Delete button next to the cron job you wish to remove.

Above all prtocess for Standard Cron Manager. Now I explain you about Advanced (UNIX Style) Cron Jobs Mod.
click here for more details.

Advanced (UNIX Style) Cron Jobs Mod

This provides the regular UNIX style cron options. It is recommended only for users, who are used to this method of setting cron entries. See below Image.

unixtype

Adding a cron job in advanced mode

  • To access the Cron Jobs Menu, click on the corresponding icon located on the main screen of your cPanel interface.
  • Click on Advanced (Unix Style) to access the Cron Manager.
  • Enter the email address you wish the output of the command run by the cron job to be sent to in the corresponding field.
  • Enter the command you wish the cron job to run in the blank field below the Command label.
  • Select how often you wish the command to be run by placing a number or asterisk (*) in each of the boxes.
  • Click on Save Crontab to save your changes and set up your cron job.

Note : An asterisk (*) denotes to run the command at every possible time for that box. For example, a * in the month box would run the command every month.

Deleting a cron job in advanced mode

When a cron job is no longer needed, you should delete it so the command will not continue to run.

  • To access the Cron Jobs Menu, click on the corresponding icon located on the main screen of your cPanel interface.
  • Click on Advanced (Unix Style) to access the Cron Manager.
  • Click on the Remove icon next to the cron job you wish to delete.

Thats it. I think this tutorial become very helpful to you.

If you have any query or any suggestion please comment on this.