Please Login or Register


What do I put for the cron job Command ?


Command lines. Examples only! Bold sections must be changed.

Shared, Reseller, SEO hosting, and other (VPS and Dedicated with Easy Apache 3 installed)


Command to run a PHP5 cron job:
php /home/user_name123/public_html/cron.php

Optional flag sometimes required for a PHP cron job:
php -q /home/user_name123/public_html/cron.php

Command to run a PHP4 cron job:
/usr/local/php4/bin/php /home/user_name123/public_html/cron.php

All hosting types


Command to GET a remote file:

Command to run a CGI cron job:
perl /home/user_name123/public_html/cgi-bin/

SSH Extras

Command to run a shell script cron job:
/bin/sh /home/user_name123/public_html/

Command to import a database:
mysql -u mysql_user -ppassword database_name < backup.sql

Command to export a database:
mysqldump -u mysql_user -ppassword database_name > backup.sql


VPS and Dedicated without Easy Apache 3 (unlikely, we install EA3 by default)


Command to run for a PHP4 cron job:
/usr/bin/php /home/user_name123/public_html/cron.php

Command to run for a PHP5 cron job:
/usr/local/php5/bin/php5 /home/user_name123/public_html/cron.php

Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
What is a favicon? (Views: 2511)
Mail Folder (Views: 2620)

Powered by Ps2Gamer


Quick Navigation

Client Login



Remember Me