View Single Post
Old 04-06-2004, 08:21 PM   #1
jerrywin5
Orange Mole
 
Join Date: Mar 2004
Posts: 48
Problem running cron job

I am able to run the spider from the shell and index URLs in a file using
Code:
php -f spider.php newurls.txt >> spider.log
However, when I setup a cron job using
Code:
0 1 * * * php -f spider.php newurls.txt >> spider.log
it does not work. I get the following error:
Code:
/bin/sh: php: command not found
and do not know why. Which command is the error referring to? What do I need to change?

Any help would be appreciated.
jerrywin5 is offline   Reply With Quote