Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 May 1999 11:02:14 -0700 (PDT)
From:      Mahlon Smith <reich@internetcds.com>
To:        Matt Behrens <matt@zigg.com>
Cc:        questions@freebsd.org
Subject:   Re: Redirecting output of `time'
Message-ID:  <Pine.BSF.4.10.9905251101550.16822-100000@martini.office.cdsnet.net>
In-Reply-To: <Pine.BSF.4.10.9905251342110.1048-100000@megaweapon.zigg.com>

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



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 <matt@zigg.com>
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9905251101550.16822-100000>