From owner-freebsd-questions Wed Sep 10 06:38:47 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA02150 for questions-outgoing; Wed, 10 Sep 1997 06:38:47 -0700 (PDT) Received: from mail13.digital.com (mail13.digital.com [192.208.46.30]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id GAA02145 for ; Wed, 10 Sep 1997 06:38:44 -0700 (PDT) Received: from cssmuc.frt.dec.com (cssmuc.frt.dec.com [16.186.96.161]) by mail13.digital.com (8.7.5/UNX 1.5/1.0/WV) with SMTP id JAA13872; Wed, 10 Sep 1997 09:14:55 -0400 (EDT) Received: from mofo.frt.dec.com by cssmuc.frt.dec.com; (5.65v3.2/1.1.8.2/14Nov95-0232PM) id AA26381; Wed, 10 Sep 1997 15:14:48 +0200 Received: from mofo.frt.dec.com (localhost [127.0.0.1]) by mofo.frt.dec.com (8.8.6/8.8.5) with ESMTP id PAA04625; Wed, 10 Sep 1997 15:12:54 GMT Message-Id: <199709101512.PAA04625@mofo.frt.dec.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: Greg Pavelcak Cc: questions@freebsd.org In-Reply-To: Message from Greg Pavelcak of Wed, 10 Sep 1997 07:37:46 -0400. Reply-To: gjennejohn@frt.dec.com Subject: Re: Redirecting "make world" Output Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 10 Sep 1997 15:12:54 +0000 From: Gary Jennejohn Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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