I run it with bash
Zitat von Susam Pal <susam....@gmail.com>:
On Wed, Jun 10, 2009 at 12:29 AM, <nutchn...@joergsandl.com> wrote:
I used the recrawl script but caused errors:
runbot: ./nutchcrawler.sh could not find environment variable NUTCH_HOME
runbot: NUTCH_HOME=/nutch has been set by the script
runbot: ./nutchcrawler.sh could not find environment variable NUTCH_HOME
runbot: CATALINA_HOME=/usr/local/tomcat has been set by the script
----- Inject (Step 1 of 8) -----
Injector: starting
Injector: crawlDb: crawl/crawldb
Injector: urlDir: urls
Injector: Converting injected urls to crawl db entries.
Injector: Merging injected urls into crawl db.
Injector: done
----- Generate, Fetch, Parse, Update (Step 2 of 8) -----
./nutchcrawler.sh: 56: Syntax error: Bad for loop variable
--------------------LINE 56 is-----------------
echo "----- Generate, Fetch, Parse, Update (Step 2 of $steps) -----"
for((i=0; i < $depth; i++))
do
------------------------------------------------
This statement should run fine in bash. What shell are you using to
run this? I never tested this script for anything other than bash. If
you are using some other shell, you might want to rewrite the loop
using a while or something else that works for your shell.
Regards,
Susam Pal