PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   Troubleshooting (http://www.phpdig.net/forum/forumdisplay.php?f=22)
-   -   Problem running cron job (http://www.phpdig.net/forum/showthread.php?t=786)

jerrywin5 04-06-2004 08:21 PM

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.

Charter 04-10-2004 03:07 PM

>> Which command is the error referring to?

Hi. Looks like it refers to PHP as not found. Perhaps try the following instead:

Code:

0 1 * * * /full/path/to/php -f /full/path/to/spider.php /full/path/to/newurls.txt >> /full/path/to/spider.log


All times are GMT -8. The time now is 12:09 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.