From owner-freebsd-questions Sun Feb 20 6:11:24 2000 Delivered-To: freebsd-questions@freebsd.org Received: from ns.cvzoom.net (ns.cvzoom.net [208.226.154.2]) by hub.freebsd.org (Postfix) with SMTP id 332A637BD03 for ; Sun, 20 Feb 2000 06:11:21 -0800 (PST) (envelope-from dmmiller@cvzoom.net) Received: (qmail 22826 invoked from network); 20 Feb 2000 14:11:20 -0000 Received: from lcm208.cvzoom.net (208.230.69.208) by ns.cvzoom.net with SMTP; 20 Feb 2000 14:11:20 -0000 Date: Sun, 20 Feb 2000 09:10:53 -0500 (EST) From: Donn Miller To: "david e. banning" Cc: questions@freebsd.org Subject: Re: how to capture errors to a file In-Reply-To: <200002200146.BAA19062@mweb.worldy.com> 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 On Sun, 20 Feb 2000, david e. banning wrote: > I am having errors compiling - I want to send error messages to > a file - I tried; > "make 2>&1 > errorfile" - nope > then I tried; > "make > errorfile" - get some of the errors - the rest go to the screen It depends on which shell you are using. For csh and tcsh, use make >& errorfile If you want to see the output on your screen AND save the output to a file, use the "tee" command as follows make |& tee errorfile The above assumes you are using csh or tcsh. But for bash or sh, you would use make > errorfile 2>&1 make 2>&1 | tee errorfile - Donn To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message