Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: Re:emerge [gentoo-user] logging output
Date: Wed, 23 May 2018 02:57:05
Message-Id: 20180523025640.GA2869@waltdnes.org
In Reply to: Re:emerge [gentoo-user] logging output by Lucas Ramage
1 On Tue, May 22, 2018 at 12:56:12PM +0000, Lucas Ramage wrote
2
3 > Or output to file,
4 >
5 > emerge --update --deep --newuse @world > emerge.log
6 >
7 > # then you can open it in a text editor and search around.
8 > # I took out the `--ask` so that it wouldn't prompt before starting
9
10 This will *NOT* capture error error messages, because you're only
11 redirecting stdout, not stderr. One way to get both is to redirect
12 stderr to stdout before redirecting stdout, e.g.
13
14 emerge --update --deep --newuse @world >>emerge.log 2>&1
15
16 And I absolutely *HATE* commands that send "--help" output to stderr
17 rather than stdout. That's why I researched this stuff.
18
19 --
20 Walter Dnes <waltdnes@××××××××.org>
21 I don't run "desktop environments"; I run useful applications