This is because windows style "\r\n" is present in the script. You can clean the script by opening vi editor and issuing the following commands.
:set ff=unix :wq If that doesn't work for you, try this:- cp bin/nutch nutch.bak cat nutch.bak | tr -d "\r" > bin/nutch This should remove "\r" wherever present and your script should run. We discussed this earlier too. See:- 1. http://www.mail-archive.com/[email protected]/msg08481.html 2. http://www.mail-archive.com/[email protected]/msg08933.html Regards, Susam Pal http://susam.in/ On 10/20/07, Brehm, Robert P <[EMAIL PROTECTED]> wrote: > Hi List, > > I am using Cygwin on Windows XP. Every time I try to run bin/nutch I > get the following error: > > $ bin/nutch > bin/nutch: line 15: syntax error near unexpected token `$'in\r'' > 'in/nutch: line 15: `case "`uname`" in > > Hopefully it is a simple problem. > > Regards, > > Bob Brehm >
