Gentoo Archives: gentoo-user

From: Dr Rainer Woitok <rainer.woitok@×××××.com>
To: gentoo-user@l.g.o, John Covici <covici@××××××××××.com>
Subject: Re: [gentoo-user] Piping "emerge -a" to some other command
Date: Fri, 25 Feb 2022 10:26:47
Message-Id: 25112.44762.946195.634222@tux.local
1 John,
3 On Thursday, 2022-02-24 09:59:50 -0500, you wrote:
5 > ...
6 > I use script for that purpose and it works great, the output is
7 > complete and I can just say no and its all there.
9 Nice idea. However, I'd like to keep things as simple as possible, be-
10 cause an important usecase for me is installing a new or fixing an ex-
11 isting system after booting from a USB stick. The "script" binary is in
12 package "sys-apps/util-linux" which belongs to "@system", so it SHOULD
13 be on my USB stick. Like "cmp" and "diff" from package "sys-apps/diff-
14 utils" which belong to "@system" too, but which were NOT on my USB stick
15 when I used it to install my current system about three years ago, or at
16 least they were not in "PATH" (I then didn't frantically need these, so
17 I didn't really search for them).
19 I do not know what "nano" (the only editor then available) will do with
20 all the control characters in the "script" output file, and "scriptre-
21 play" doesn't seem to offer any interactive control. I do have a "gawk"
22 based shell function which turns a "script" output file into a normal
23 text file containing command log + standard output + standard error sans
24 any control characters, but this will not yet be available in that situ-
25 ation.
27 So I'm still preferring "tee" here which definitely WAS on my USB stick.
29 Sincerely,
30 Rainer


Subject Author
Re: [gentoo-user] Piping "emerge -a" to some other command Neil Bothwick <neil@××××××××××.uk>