From owner-freebsd-questions@FreeBSD.ORG Fri Mar 3 12:12:32 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A91F16A420 for ; Fri, 3 Mar 2006 12:12:32 +0000 (GMT) (envelope-from duncan.fbsd@gmail.com) Received: from smtp106.sbc.mail.re2.yahoo.com (smtp106.sbc.mail.re2.yahoo.com [68.142.229.99]) by mx1.FreeBSD.org (Postfix) with SMTP id 84B0643D48 for ; Fri, 3 Mar 2006 12:12:31 +0000 (GMT) (envelope-from duncan.fbsd@gmail.com) Received: (qmail 71736 invoked from network); 3 Mar 2006 12:12:30 -0000 Received: from unknown (HELO pres1750.mylan.net) (donaldj@ameritech.net@69.212.23.169 with plain) by smtp106.sbc.mail.re2.yahoo.com with SMTP; 3 Mar 2006 12:12:30 -0000 From: "Donald J. O'Neill" To: freebsd-questions@freebsd.org Date: Fri, 3 Mar 2006 06:12:28 -0600 User-Agent: KMail/1.9.1 References: <7.0.1.0.2.20060228112857.0035f998@broadpark.no> <440466CF.2000007@jamesbailie.com> <7.0.1.0.2.20060303115120.022b0d30@broadpark.no> In-Reply-To: <7.0.1.0.2.20060303115120.022b0d30@broadpark.no> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200603030612.28944.duncan.fbsd@gmail.com> Cc: James Bailie , questions@freebsd.org, Glenn Dawson Subject: Re: script(1) > Why does it output in CR/LF? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Mar 2006 12:12:32 -0000 On Friday 03 March 2006 04:52, Kristian Vaaf wrote: > At 16:05 28.02.2006, James Bailie wrote: > >Glenn Dawson wrote: > > > At 02:30 AM 2/28/2006, Kristian Vaaf wrote: > > >> Hello. > > >> > > >> I am just curious why the files I generate with script(1) output > > >> in CR/LF forcing me to run dos2unix on them everytime? > > > > > > Script just captures the output of your shell, and your shell has > > > to send crlf in order to get the cursor back to the beginning of > > > a line. > > > >No it doesn't. The script(1) utility interposes a > >pseudo-terminal between the program whose output is to be > >captured and itself, so the program thinks its running on a > >terminal device and behaves accordingly. Then script(1) acts > >like a transparent filter, shuttling data back-and-forth from the > >actual terminal to the pseudo-terminal, while sending a copy of > >the program's output to the log file as well. It is the terminal > >driver in canonical mode, "inside" the pseudo-terminal, that is > >expanding NLs in the proggy's output stream into CRNL pairs. > > > >-- > >James Bailie > >http://www.jamesbailie.com > > Thank you man, that was a wonderful description :) > > The last question though, > don't you find it the least bit stupid? > > Thanks! > Christian, Just a quick question: what are you using to look at them? If things just work, there is no problem. I don't understand why you have to do this. Are you looking at them on a windows box? I know you're emailing the list from a windows box. Don