Date: Wed, 10 Sep 1997 14:11:08 -0700 (PDT) From: ron@cts.com To: gjennejohn@frt.dec.com Cc: Gary Jennejohn <garyj@mofo.frt.dec.com>, questions@FreeBSD.ORG Subject: Re: Redirecting "make world" Output Message-ID: <XFMail.970910141241.ron@cts.com> In-Reply-To: <199709101512.PAA04625@mofo.frt.dec.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 ----------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.970910141241.ron>