Snowbankih, Ltd.
Please Login or Register

Knowledgebase

What support for cron jobs is available and how do I use it?

Cron jobs allow you to schedule the running of commands on your account and can be set up from within your control panel or via SSH using the crontab command.

Via the control panel, you can use the standard interface which simplifies specifying the command to run. After selecting the Cron option from the main cPanel screen, you can select Standard and then use the simple menus to specify a time.

If you wanted to run a maintenance PHP script every night at midnight located at http://www.name.com/maintenance.php then you could set up the cron to run the following command:

wget -q -O /dev/null http://www.name.com/maintenance.php

This would use the wget command to 'get' the file directing any output to a black hole.

Standard Cron Interface

This is set up similarly in the Advanced mode, however the time are specified differently:

Advanced Cron Interface

A guide to cron jobs can be found here.



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read

Powered by WHMCompleteSolution

Quick Navigation

Client Login

Email

Password

Remember Me

Search