Hello Kai,

Yes, dos2unix should also work.

Regards,
Susam Pal
http://susam.in/

On 7/26/07, Kai_testing Middleton <[EMAIL PROTECTED]> wrote:
> Thanks for the nice writeup Susam Pal.  Just as an off-the-cuff comment, I 
> wonder if the dos2unix or unix2dos commands would also work.  Those are part 
> of the cygwin distribution.
>
> --Kai M.
>
> ----- Original Message ----
> From: Susam Pal <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Sent: Thursday, July 26, 2007 3:24:44 AM
> Subject: Re: Point of Note to Windows Users
>
> This problem has been discussed before.
>
> All you need to do is search mailing-archive.com for 'cygwin trouble'
> in '[EMAIL PROTECTED]'.
>
> I have replied a question regarding this issue in this thread:-
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg08481.html
>
> It has an alternative method to quickly get rid of the '\r' characters
> even if you have a very old vi editor. Quoting from that post:-
>
> <QUOTE>
> 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
> </QUOTE>
>
> Regards,
> Susam Pal
> http://susam.in/
>
> On 7/25/07, feran <[EMAIL PROTECTED]> wrote:
> > I was browsing through the mailing list and never saw the solution, but I'd 
> > like to note for the record for using Nutch with Windows, that the 
> > bin/nutch file needs to use *nix line breaks.
> >
> > So if you get an unexpected \r error on run in Cygwin, that's because 
> > Windows users have \r line breaks, and *nix users have \n
> >
> > So in VIM if you do a
> >
> > :set ff=unix
> > :w
> >
> > it runs fine.
>
>
>
>
>
>
>
>
> ____________________________________________________________________________________
> Be a better Globetrotter. Get better travel answers from someone who knows. 
> Yahoo! Answers - Check it out.
> http://answers.yahoo.com/dir/?link=list&sid=396545469

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Nutch-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-general

Reply via email to