Cron command error


#1

why i receive this error with this cron job:

/bin/sh: line 1: php: command not found

*/2 * * * * php /home/.dodge/user182642/mydomain.com/update.php


#2

If you read this http://wiki.dreamhost.com/index.php/Crontab#About_cron_on_DreamHost, you will know that you need to specify a path to execute php.

I think your codes should be
*/2 * * * * /usr/local/bin/php /home/.dodge/user182642/mydomain.com/update.php

More code here Save [color=#CC0000]$97[/color] (max discount) with [color=#CC0000]97CRAZY[/color] SignUp NOW


#3

Adding to what Nathan has posted, you should also remove the dataglob (.dodge) from the line as below;

*/2 * * * * /usr/local/bin/php /home/user182642/mydomain.com/update.php


Hot Product Directory | Get Around The Net Directory