Date: Sun, 20 Feb 2000 09:10:53 -0500 (EST) From: Donn Miller <dmmiller@cvzoom.net> To: "david e. banning" <tracker@worldy.com> Cc: questions@freebsd.org Subject: Re: how to capture errors to a file Message-ID: <Pine.BSF.4.20.0002200907080.8461-100000@lcm208.cvzoom.net> In-Reply-To: <200002200146.BAA19062@mweb.worldy.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.20.0002200907080.8461-100000>