crontab error

crontab error

Posted by: zerodiesel
Posted on: 2005-04-11 19:15:00

i keep getting the following email..

/bin/sh: /home/**USERNAME**/pop.cron.php: /usr/bin/php: bad interpreter: No such file or directory

But my cron has been set as..

*/1 * * * * /home/**USERNAME**/pop.cron.php

Im wanting this to run every minute, btw ive edited out username, help is appreciated.

Thanks :)!

Re: crontab error

Posted by: kchrist
Posted on: 2005-04-11 19:41:00

/usr/bin/php: bad interpreter: No such file or directory

$ ls /usr/bin/php
ls: /usr/bin/php: No such file or directory
$ which php
/usr/local/bin/php

--
If you want useful replies, ask smart questions.

Re: crontab error

Posted by: zerodiesel
Posted on: 2005-04-11 19:42:00

Sorry i dont understand, atm ive got it working by WGET .. but rather use normal cron. so can u elaberate more plz?

Re: crontab error

Posted by: sturm
Posted on: 2005-04-11 19:55:00

the script that cron is calling, pop.cron.php, is referencing php from the wrong location. if you've got a line at the top of the script that says

#!/usr/bin/php

change it to

#!/usr/bin/local/php

Tags: cronphpemailpopcrontabinterpreterusrappreciatedbtwhelp