Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Sep 1997 15:12:54 +0000
From:      Gary Jennejohn <garyj@mofo.frt.dec.com>
To:        Greg Pavelcak <gpavelcak@philos.umass.edu>
Cc:        questions@freebsd.org
Subject:   Re: Redirecting "make world" Output 
Message-ID:  <199709101512.PAA04625@mofo.frt.dec.com>
In-Reply-To: Message from Greg Pavelcak <gpavelcak@philos.umass.edu>  of Wed,  10 Sep 1997 07:37:46 -0400.

next in thread | previous in thread | raw e-mail | index | archive | help

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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709101512.PAA04625>