What do I put for the cron job Command to Run? Print

  • 14000

Movie on how to use the Standard cron job option.

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

Command to run for a php5 cron job (with Easy Apache 3):
php /home/user_name123/public_html/cron.php

Remote File
/usr/bin/GET http://www.some-domain.com/file.php

Command to run a cgi cron job:
perl /home/username/public_html/cgi-bin/file.pl

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

Command to run for a php4 cron job (with Easy Apache 3
):
/usr/local/php4/bin/php /home/user_name123/public_html/cron.php



SSH Extras

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

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



OLD COMMANDS (may still work for your customer)

Command to run for a php4 cron job (without Easy Apache 3):

/usr/bin/php /home/user_name123/public_html/cron.php

Command to run for a php5 cron job (without Easy Apache 3):

/usr/local/php5/bin/php5 /home/user_name123/public_html/cron.php 


Does HDWEBPROVIDER™ provide a script that backs up my website and data? No, we cannot provide a script that backs up your data, nor can we help you use such a script.
Related Articles


Was this answer helpful?

« Back

Powered by WHMCompleteSolution