BuycPanel Blog

BuycPanel Blog

Latest news and updates

9/18/2014 – How to Use cPanel Cron Jobs

Posted by Jamison on 18 09 2014.

Most people would dread seeing complicated scripts, multiple apps, and various tools. The  bad news is you need to learn all of these things so you can create a good website, but the good news is cPanel will make your life easier. It will provide you with accessible and convenient apps and tools that will not give you a headache, instead, eventually you will enjoy using and utilizing the tools so you can improve your website from time to time. For sure, you want to see your webpages updated, to increase your site traffic, to experience business growth. You need to know how to efficiently utilize all these tools in cPanel so you will have a good experience with website management.

 

Apart from being on top of managing your site, you also need to learn how to use your time wisely. You cannot spend your whole day deleting files or upgrading your webpages, you have to find ways on how to manage your site more efficiently. cPanel provides you with features that you can use to be able to do this.

 

One of its advanced features is the cron jobs. A cron job basically allows you to run a certain command at times which is set by the job. One instance would be setting a cron job so you can delete temporary files on a weekly basis to avoid eating up your disk space by unnecessary and insignificant files. Cron jobs allow you to automate specific commands or scripts on your site. This can be done by setting a command or script to run at a selected time of the day or week. For you to successfully launch cron jobs, you need to have a good knowledge and understanding of Linux commands.

 

You can start creating a cron job this by simply accessing the Cron jobs menu. Click on the icon located in the advanced section featured on the main screen of your cPanel interface.

 

Here are the steps on how to add a cron job:

 

  1. Access the Cron Jobs menu by clicking on the assigned icon in the screen of the cPanel interface.
  2. This step is optional. You need to enter the email address where the cron output will be sent to in the corresponding field.
  3. Enter the command you wish the cron job to run in the blank field next to the Command field.
  4. Decide and choose how often you wish the command to be run by selecting an option in each of the boxes or by selecting a predefined period from the Common Settings drop-down menu.
  5. Click on Add New Cron Job to save your changes and set up your cron job.

 

Once you have decided that you do not need the cron job you have created, you can delete it so the command will stop working.  Here is how you can delete a cron job:

 

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