[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 (resend)] tee: Add -q, --quiet, --silent option to not wri
From: |
L A Walsh |
Subject: |
Re: [PATCH v3 (resend)] tee: Add -q, --quiet, --silent option to not write to stdout |
Date: |
Wed, 27 Jan 2021 03:30:58 -0800 |
User-agent: |
Thunderbird 2.0.0.24 (Windows/20100228) |
On 2021/01/27 00:15, Christian Groessler wrote:
What is so difficult with
$ echo "3" | sudo sh -c "cat > proc/sys/vm/dropcache"
I don't get it...
regards,
chris
----
well, if you have 'sh' it might work, but it also might
run some "rc" script.
In some cases I've seen some people have their 'sudo' reset
HOME (BTW, you likely want a '/' before proc).
Some shells will use temporary files for the communications rather
than pipes. That could open various chances for race conditions,
more so in the past than these days.
I've seen more than one installation of 'sudo'
disallow the running of another shell and some try to
drop privileges if the 1st progam run execs another program.
Normally, it may not be a problem on "your" system or on
"my" system, but in general?
Quoting the '>' to get the behavior you want seems
a bit strained, even though it might work.
I probably wouldn't _expect_ it to work on a random
system that I was on unless I'd verified it to work.
- Re: [PATCH v3 (resend)] tee: Add -q, --quiet, --silent option to not write to stdout, (continued)
- Re: [PATCH v3 (resend)] tee: Add -q, --quiet, --silent option to not write to stdout, Otto Moerbeek, 2021/01/24
- Re: [PATCH v3 (resend)] tee: Add -q, --quiet, --silent option to not write to stdout, Theo de Raadt, 2021/01/24
- Re: [PATCH v3 (resend)] tee: Add -q, --quiet, --silent option to not write to stdout, Alex Henrie, 2021/01/24
- Re: [PATCH v3 (resend)] tee: Add -q, --quiet, --silent option to not write to stdout, Otto Moerbeek, 2021/01/24
- Re: [PATCH v3 (resend)] tee: Add -q, --quiet, --silent option to not write to stdout, Bernhard Voelker, 2021/01/24
- Re: [PATCH v3 (resend)] tee: Add -q, --quiet, --silent option to not write to stdout, Alejandro Colomar (man-pages), 2021/01/25
- Re: [PATCH v3 (resend)] tee: Add -q, --quiet, --silent option to not write to stdout, Alejandro Colomar (man-pages), 2021/01/26
- Re: [PATCH v3 (resend)] tee: Add -q, --quiet, --silent option to not write to stdout, Rodney W. Grimes, 2021/01/26
- Re: [PATCH v3 (resend)] tee: Add -q, --quiet, --silent option to not write to stdout, L A Walsh, 2021/01/26
- Re: [PATCH v3 (resend)] tee: Add -q, --quiet, --silent option to not write to stdout, Christian Groessler, 2021/01/27
- Re: [PATCH v3 (resend)] tee: Add -q, --quiet, --silent option to not write to stdout,
L A Walsh <=
- Re: [PATCH v3 (resend)] tee: Add -q, --quiet, --silent option to not write to stdout, Fabrice BAUZAC-STEHLY, 2021/01/29
- Re: [PATCH v3 (resend)] tee: Add -q, --quiet, --silent option to not write to stdout, Eric Pruitt, 2021/01/29
- Re: [PATCH v3 (resend)] tee: Add -q, --quiet, --silent option to not write to stdout, Rodney W. Grimes, 2021/01/27
- Re: [PATCH v3 (resend)] tee: Add -q, --quiet, --silent option to not write to stdout, Alex Henrie, 2021/01/26
- (resend) - simple fix to eliminate the need for a new feature in 'tee'. (was Re: [PATCH v3 (resend)] tee: ...), L A Walsh, 2021/01/26
- Re: [PATCH v3 (resend)] tee: Add -q, --quiet, --silent option to not write to stdout, Rodney W. Grimes, 2021/01/27
- Re: [PATCH v3 (resend)] tee: Add -q, --quiet, --silent option to not write to stdout, Philipp-Joachim Ost, 2021/01/25
- Re: [PATCH] tee: Add -q, --quiet option to not write to stdout, Eric Pruitt, 2021/01/21
- Re: [PATCH] tee: Add -q, --quiet option to not write to stdout, Christian Groessler, 2021/01/21
- Re: [PATCH] tee: Add -q, --quiet option to not write to stdout, Jeffrey Walton, 2021/01/21