Setting up a cron job

Cron jobs are a great way to have tasks repeat at regular intervals automatically, whether that be checking something, sending something or fetching something!

Generally you'll have a script written to complete the specified task (here at BetterWebSpace we write most of ours in PHP).

 

  1. Login to your cPanel.
  2. Click on "Cron Jobs" under the advanced category.
  3. Fill in the required information for how often you want the cron job to run (or use "Common Settings" to populate most of the fields).
  4. In the command section fill in the name of the command you want to execute, for example a PHP script:
    php -q /home/ACCOUNTNAME/public_html/script_in_my_home.php

 

 

Was this answer helpful?

 Print this Article

Also Read

Index Manager

The Index Manager allows you to customise how your directories are seen on the web if they do not...

SSL Certificates

There are so many different types of SSL certificate and information about them in the...

What are error pages and how can I modify them?

The server uses error pages to display to a user when it encounters an error with what they are...

Server Migration for IP record domains

This article is to assist customers who point either their A or MX records (or any other records)...