From owner-freebsd-questions Tue May 25 10:47: 9 1999 Delivered-To: freebsd-questions@freebsd.org Received: from megaweapon.zigg.com (megaweapon.zigg.com [206.114.60.8]) by hub.freebsd.org (Postfix) with ESMTP id 0683C14D96 for ; Tue, 25 May 1999 10:47:05 -0700 (PDT) (envelope-from matt@zigg.com) Received: from localhost (matt@localhost) by megaweapon.zigg.com (8.9.3/8.9.2) with ESMTP id NAA01096 for ; Tue, 25 May 1999 13:47:03 -0400 (EDT) (envelope-from matt@zigg.com) Date: Tue, 25 May 1999 13:47:03 -0400 (EDT) From: Matt Behrens To: questions@freebsd.org Subject: Redirecting output of `time' 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 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