3e web hosting
Please Login or Register

Knowledgebase

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

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



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
phpMyAdmin (Views: 286)
How to log into cPanel (Views: 290)

Powered by WHMCompleteSolution

Language:

Quick Navigation

Client Login

Email

Password

Remember Me

Search