PDA

View Full Version : chron setup problems...


goalpower
07-03-2007, 03:34 PM
I am attempting to setup a chron job for a .php script I've installed.

Can't figure out how to do this.

How do I know ....

1) Which shell to use (my script install instructions don't say)?

2) What's the path (my install instructions gave me this set of instrictions:


Command to run – enter the following line inside this field "lynx > /dev/null -dump http://www.yoursite.com/admin/cron.php (http://www.abc.com/admin/cron.php)", where “yoursite” should be replaced with the actual address of your web siteis this the path? "lynx > /dev/null -dump <A href="http://www.yoursite.com/admin/cron.php"">http://www.yoursite.com/admin/cron.php" (http://www.abc.com/admin/cron.php)
3) I can figure out the time settings.
4) What's the script? Is it this also... "lynx > /dev/null -dump http://www.yoursite.com/admin/cron.php (http://www.yoursite.com/admin/cron.php)"

Please help!

Goalpower

Justec
07-03-2007, 06:21 PM
You should be able to run it directly if you chmod for +x

Or you can just do

/usr/bin/php -q /path/to/script.php