This is because somehow the windows style "\r\n" has got into 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, then you can 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. Regards, Susam Pal http://susam.in/ ------------------------------- Security enthusiasts meet @ OpenSEG - http://www.openseg.org/ On 6/18/07, niraj tulachan <[EMAIL PROTECTED]> wrote: > Hi all, > I am very new to the software programming world. Anyway, I was just > follwing the tutorial for nutch-0.8.1 and I followed all the installation of > JDK (1.5) and Tomcat 5.5 and Cygwin as well. However, when I enter bin/nutch > for the nutch dir in Cygin, it is giving me the following error. So I'm > stuck in the very early stage! > Here is my error: > $ bin/nutch > bin/nutch: line 14 $'\r': command not found > bin/nutch: line 15: syntax error near unexpected token '$' in\r'' > 'in/nutch: line 15: 'case "`uname`' in > > I mean it might be very trivial but I have not done any scripting, so I am > unable to debug that. I'm hoping somebody will help me. Thank you for > taking your time. > Thanks, > Niraj > > > > --------------------------------- > Be a better Globetrotter. Get better travel answers from someone who knows. > Yahoo! Answers - Check it out. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Nutch-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nutch-general
