From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Wed, 18 Oct 2017 10:11:06 +0200 Subject: [Buildroot] [PATCH RFC] core: enable per-package log files In-Reply-To: <20171018080911.GA12664@bifrost> References: <20171016211842.GA32198@bifrost> <20171017091152.67d7ad28@windsurf.lan> <4234cedb-0646-496e-9ee1-0bc60c847810@mind.be> <20171017141133.4d57ee87@windsurf.lan> <9955dbb8-0447-5a3d-9e78-a0f6f42e7e6c@mind.be> <20171017210354.38d89b3c@windsurf.lan> <20171018085748.20a3a9f5@windsurf.home> <20171018074436.GB11912@bifrost> <20171018095826.26c40072@windsurf.home> <20171018080911.GA12664@bifrost> Message-ID: <20171018101106.1364b003@windsurf.home> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hello, On Wed, 18 Oct 2017 10:09:11 +0200, Anisse Astier wrote: > > Well, in this case, you'd get the message twice on your terminal if you > > run "make 2>&1 | tee logfile". Only one of the two will be saved in the > > log file, but both of them will be visible on your tty. > > It should be possible to detect if stdout is a tty or a pipe, and not > print on the tty when it's already one. And when it's both, with "tee" ? :-) Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com