Now Here - Church Website Designs!

 

Knowledgebase

Portal Home > Knowledgebase > Cpanel > Advanced > How do I use Cron Jobs in my cPanel?

How do I use Cron Jobs in my cPanel?

 

A cron job allows you to run a specific command at times set up by the job. For example, you can set  a cron job to delete your sites temporary files once a week to clear disk space.

Access Cron Jobs:

You can access your cron jobs menu by selecting the Cron Jobs icon located on the main screen of your cPanel interface.

Standard Cron Jobs Manager:

The Standard mode provides you with a range of pre-set options that you can choose from. This is the easiest way for you to execute cron jobs and is recommended for all but experienced users with special cron job requirements.

Adding a Cron Job in Standard Mode:

1.      1.  Once you have selected the cron jobs icon located on the main screen of your cPanel, select Standard to access the Standard Cron Manager

2.       2. Input an email address that you want the cron output to be sent

3.       3. In the blank field next to the Command to Run label enter the command you wish the cron job to run

4.       4. By selecting an option in each of the boxes, select how often you wish the command to be run

5.       5. Select the Save Crontab to save your changes and setup your cron job

Deleting a Cron Job in Standard Mode

1.      1.  Once you have selected the cron jobs icon located on the main screen of your cPanel, select Standard to access the Standard Cron Manager

2.       2. Select the Delete button next to the cron job you wish to delete

Advanced Cron Job Mode

The advanced (unix style) cron job manager provides you with regular UNIX style cron options. It is recommended only for advanced users with specific cron job needs that cannot be met through the standard cron job manager

Adding a Cron Job in Advanced Mode

1.      1.  Once you have selected the cron jobs icon located on the main screen of your cPanel, select Advanced to access the Advanced Cron Manager

2.       2. Input an email address that you want the cron output to be sent

3.       3. In the blank field next to the Command to Run label enter the command you wish the cron job to run

4.       4. Select how often you wish the command to be run by placing a number or asterisk in each of the boxes

5.       5. Select the Save Crontab to save your changes and setup your cron job

NOTE: THE ASTERISK DENOTES TO RUN THE COMMAND AT EVERY POSSIBLE TIME FOR THAT BOX.

Deleting a Cron Job in Advanced Mode:

1.       1. Once you have selected the cron jobs icon located on the main screen of your cPanel, select Standard to access the Standard Cron Manager

2.       2. Select the Delete button next to the cron job you wish to delete

 

 

Was this answer helpful?

Add to Favourites Add to Favourites Print this Article Print this Article

Also Read