cron command error

cron command error

Posted by: Vendetta
Posted on: 2007-03-17 13:46:00

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

Re: cron command error

Posted by: nathan823
Posted on: 2007-03-17 19:05:00

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

Re: cron command error

Posted by: Shonky
Posted on: 2007-03-17 22:48:00

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

Tags: cron jobmydomainline 1sh