Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 May 1999 13:47:03 -0400 (EDT)
From:      Matt Behrens <matt@zigg.com>
To:        questions@freebsd.org
Subject:   Redirecting output of `time'
Message-ID:  <Pine.BSF.4.10.9905251342110.1048-100000@megaweapon.zigg.com>

next in thread | raw e-mail | index | archive | help
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




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