From owner-freebsd-questions Wed Sep 10 14:13:16 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA27600 for questions-outgoing; Wed, 10 Sep 1997 14:13:16 -0700 (PDT) Received: from thor.i-connect.net (qmailr@thor.i-Connect.Net [206.190.143.254]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id OAA27595 for ; Wed, 10 Sep 1997 14:13:13 -0700 (PDT) Received: (qmail 22350 invoked by uid 4028); 10 Sep 1997 21:13:01 -0000 Message-ID: X-Mailer: XFMail 0.5-alpha [p0] on Linux Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <199709101512.PAA04625@mofo.frt.dec.com> Date: Wed, 10 Sep 1997 14:11:08 -0700 (PDT) From: ron@cts.com To: gjennejohn@frt.dec.com Subject: Re: Redirecting "make world" Output Cc: Gary Jennejohn , questions@FreeBSD.ORG Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk third option... make world > foo& tail -f foo Ron McDaniels On 10-Sep-97 Gary Jennejohn wrote: >> >Greg Pavelcak writes: >> Hi, >> >> I believe the upgrade tutorial says you can save the info output of >> make world by redirecting like this (using sh as shell): >> >> make world 2>&1 | tee /var/tmp/mw.out >> >> I saw this 2>&1 construction in the sh man pages but I don't >> understand it. Anyway, the immediate problem is that I get an error >> when I write this. I think it said "ambiguous redirection" >> unfortunately I don't have it with me now. >> >> I would like to save the information produced by make world even >> though it doesn't mean much to me right now. >> >> I ssume I'm making some error with syntax here. Can you help me? >> > >the syntax depends on the shell you're using. The above is for sh and >descendents (e.g. bash). Try reading the man page for your shell. But >for csh and its children (e.g. tcsh) you need to write: > > make world |& tee ... > >One other possibility is to use script. Just start script and then >do your make world. All output will be written (by default) to a file >called typescript. After the make completes, just exit the shell started >by script and you can look at typescript to your heart's content. >Check out the script man page. > >--- >Gary Jennejohn (work) gjennejohn@frt.dec.com > (home) garyj@muc.de > (play) gj@freebsd.org > > ---------------------------------- E-Mail: ron@cts.com Date: 09/10/97 Time: 14:11:19 This message was sent by XF-Mail ----------------------------------