Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jun 2008 16:18:19 -0400
From:      Chuck Robey <chuckr@telenix.org>
To:        Gonzalo Nemmi <gnemmi@gmail.com>
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?
Message-ID:  <485EB38B.8030009@telenix.org>
In-Reply-To: <200806221620.31198.gnemmi@gmail.com>
References:  <3406.24.23.188.135.1214157813.squirrel@nexus.cs.usfca.edu>	<485E9754.600@telenix.org> <200806221620.31198.gnemmi@gmail.com>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?485EB38B.8030009>