jerrywin5
04-06-2004, 08:21 PM
I am able to run the spider from the shell and index URLs in a file using
php -f spider.php newurls.txt >> spider.log
However, when I setup a cron job using
0 1 * * * php -f spider.php newurls.txt >> spider.log
it does not work. I get the following error:
/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.
php -f spider.php newurls.txt >> spider.log
However, when I setup a cron job using
0 1 * * * php -f spider.php newurls.txt >> spider.log
it does not work. I get the following error:
/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.