What do I put for the cron job Command ?

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

PHP

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

More

Command to GET a remote file:
/usr/bin/GET http://www.some-domain.com/file.php

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

SSH Extras

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

Command to import a database:
mysql -u mysql_user -ppassword database_namebackup.sql

Command to export a database:
mysqldump -u mysql_user -ppassword database_namebackup.sql

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Can I password protect directories?

To password protect directory: Note: At this time, cPanel can only protect directories, not...

phpMyAdmin

phpMyAdmin is a tool written in PHP to handle the administration of MySQL over the web. Databases...

Copy Entire Database or Rename Database

Is there a way for me to copy an entire database in cPanel? Go to cPanel > MySQL Databases...

How to import your MySQL database

How can I import a database? Go to phpMyAdmin Click the new database name in the top left...

Creating a URL redirect

WARNING Never create a redirect for domain.com to www.domain.com or from domain.com to...