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

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

  • Email, SSL
  • 14000 Users Found This Useful
Was this answer helpful?

Related Articles

Accessing Web Disk

Web disk (also known as Web Dav) is a drag-and-drop interface which allows you to access your...

Apache Error Logs

When you check the error logs, you can see many things.Some things you can ignore:File does not...

Apache modules that are on all of our shared servers

core.c mod_authn_file.c mod_authn_dbm.c mod_authn_dbd.c mod_authn_default.c mod_authn_alias.c...

Can I password protect directories?

To password protect directory: Wait! Why read this when you can watch the movie tutorial...

CGI center

The following CGI Scripts are pre-installed and ready to use on your account: Simple CGI Wrapper...