BuycPanel Blog

BuycPanel Blog

Latest news and updates

How can you Configure Cron Jobs?

Posted by Allura on 04 04 2018.

There are certain tasks in the cPanel that are scheduled to run at a stipulated period of the time interval; these are referred to as Cron jobs. A cron job is essentially run by the computer system from a script file. A single cron job consists of a wide range of tasks which are quite effortless by nature. However, every technological task has a limitation- a cron job must not be allowed to be run for a prolonged period of time, lest it should pose a threat, thereby minimizing the performance of the server. Neither should it be run at regular intervals.

Key Features of the Cron Job Interface
A Cron job has three important properties, namely:

 	The requirement of a script which enables execution.
 	A command in the cPanel which is responsible for the execution of the script.
 	The script’s final output, which also depends on what the script being called…

There are certain tasks in the cPanel that are scheduled to run at a stipulated period of the time interval; these are referred to as Cron jobs. A cron job is essentially run by the computer system from a script file. A single cron job consists of a wide range of tasks which are quite effortless by nature. However, every technological task has a limitation- a cron job must not be allowed to be run for a prolonged period of time, lest it should pose a threat, thereby minimizing the performance of the server. Neither should it be run at regular intervals.

Key Features of the Cron Job Interface

A Cron job has three important properties, namely:

  • The requirement of a script which enables execution.
  • A command in the cPanel which is responsible for the execution of the script.
  • The script’s final output, which also depends on what the script being called for functions as.

Other Features Include:

  • It has the ability to modify databases and files.
  • Cron jobs also notify the user when a mail has been sent or received, which exclude the modification of data on the server.

How do you configure these?

Steps For adding a Cron Job

Choose the interval during which you would like to run the cron job, by selecting from the menus or entering the values in the required spaces.

  • Select the command from the command box that you think will be appropriate for running the system. A command must have a definite path, /home/user/public_html/index.php command has to be entered in order to run the public_html/index.php
  • End the program by clicking on add new cron

For viewing the specific cron jobs, you can click on current cron jobs. In this way, you’ll get the entire existing display.

To edit a cron job, you need to select the option which says edit after having located the required cron job. You can terminate the process by clicking on edit line.

Conclusion

Cron Jobs are an integral part of the cPanel and your computer system as well. An adequate level of caution has to be exercised while tackling with these tasks and their commands. There can be grave consequences such as deletion of the data present in the home directory in case correct options aren’t selected or sheer negligence.