From owner-freebsd-questions Tue May 25 11: 2:27 1999 Delivered-To: freebsd-questions@freebsd.org Received: from martini.office.cdsnet.net (martini.office.cdsnet.net [204.118.245.24]) by hub.freebsd.org (Postfix) with SMTP id A09D015227 for ; Tue, 25 May 1999 11:02:15 -0700 (PDT) (envelope-from reich@internetcds.com) Received: (qmail 11849 invoked from network); 25 May 1999 18:02:14 -0000 Received: from martini.office.cdsnet.net (reich@204.118.245.24) by martini.office.cdsnet.net with SMTP; 25 May 1999 18:02:14 -0000 Date: Tue, 25 May 1999 11:02:14 -0700 (PDT) From: Mahlon Smith X-Sender: reich@martini.office.cdsnet.net To: Matt Behrens Cc: questions@freebsd.org Subject: Re: Redirecting output of `time' In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG How about just using the 'script' utility? -------------------------- Mahlon Smith InternetCDS http://www.internetcds.com On Tue, 25 May 1999, Matt Behrens wrote: > I use the time utility to time my make buildworlds, i.e. > > time make buildworld > > which works great. However, I usually want to redirect the output > of make buildworld to a file so I can read it or tail -f it, i.e. > > make buildworld 2>&1 > /tmp/buildworld.log & > > Attaching the word time to the beginning of the previous command > still times, but outputs onto the terminal that I started the whole > thing from, which means I have to call my wife to look at my screen > and get my performance data (assuming it's still open.) I tried > a subshell, too: > > (time make buildworld) 2>&1 > /tmp/buildworld.log & > > which also didn't work. What obvious thing am I overlooking? Is > the 2>&1 perhaps not working properly (this is /bin/sh)? Thanks! > :-) > > Matt Behrens > Owner/Administrator, zigg.com > Chief Engineer, Nameless IRC Network > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message