From owner-freebsd-questions@FreeBSD.ORG Sun Jun 22 20:29:31 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E2ACD106567C for ; Sun, 22 Jun 2008 20:29:31 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: from mail4.sea5.speakeasy.net (mail4.sea5.speakeasy.net [69.17.117.6]) by mx1.freebsd.org (Postfix) with ESMTP id C38838FC1D for ; Sun, 22 Jun 2008 20:29:31 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: (qmail 31600 invoked from network); 22 Jun 2008 20:29:31 -0000 Received: from april.chuckr.org (HELO april.telenix.org) (chuckr@[66.92.151.30]) (envelope-sender ) by mail4.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 22 Jun 2008 20:29:30 -0000 Message-ID: <485EB38B.8030009@telenix.org> Date: Sun, 22 Jun 2008 16:18:19 -0400 From: Chuck Robey User-Agent: Thunderbird 2.0.0.6 (X11/20071107) MIME-Version: 1.0 To: Gonzalo Nemmi References: <3406.24.23.188.135.1214157813.squirrel@nexus.cs.usfca.edu> <485E9754.600@telenix.org> <200806221620.31198.gnemmi@gmail.com> In-Reply-To: <200806221620.31198.gnemmi@gmail.com> X-Enigmail-Version: 0.95.5 OpenPGP: id=F3DCA0E9; url=http://pgp.mit.edu Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Which file can I find the error message that shows on the screen when I build my kernel? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jun 2008 20:29:32 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Gonzalo Nemmi wrote: > On Sunday 22 June 2008 15:17:56 Chuck Robey wrote: >> make |& tee makeout >> >> where the complete ooutput goes into the "makeout" file. The "&" there >> doesn't take it's normal meaning of throwing the task into the background, >> instead, what it does is to capture both the regular output plus the stderr >> output. If you don't use it, you'll get the listing UNTIL the error, and >> it won't register the error, so don't forget it, nor change it's placement. > > I wasn't aware of the use of "&" ! > > I thought that getting a new interactive shell would force tee to record > errors too, as it was supposed to record the whole thing, not leaving > anything out (the errors in this case =P) > > Thanks a lot for the tip Chuck ! There's an app somewhere in ports that will catch some programmable amount of a file (like maybe 1K bytes) and keep this amount as the file keeps writing in and out. That way you can easily catch the most important part only, and toss the rest. It'd be a nice project for anyone new to C, not too difficult. Alterntiavely, you could set it to toss all lines until it notices the work "error" (in upper, lower, or mixed case), whereupon, it switches to saving all. Would be a nice app, but it's there in ports already somewhere. For along time, used only tcsh, under the mistaken belief that you couldn't redirect stderr for piping, under a sh-like shell, but about 6 months ago, I found out how to do that. If you would rather use a sh-like shell (maybe you'd be one of the bash-aficionados?) tell me, I will hunt up that trick. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIXrOLz62J6PPcoOkRAp2wAJ9XH39bz5QFD5tYOE3pIfjkVV+9EACfZhCe D6YvWJHo363S0oFPEP4x9hc= =AHRa -----END PGP SIGNATURE-----