Re: Faking a TTY on a pipe/socketpair

Liste des GroupesRevenir à cu programmer 
Sujet : Re: Faking a TTY on a pipe/socketpair
De : rweikusat (at) *nospam* talktalk.net (Rainer Weikusat)
Groupes : comp.unix.programmer
Date : 13. Dec 2024, 12:42:18
Autres entêtes
Message-ID : <87y10jn71h.fsf@doppelsaurus.mobileactivedefense.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Lawrence D'Oliveiro <ldo@nz.invalid> writes:
On Thu, 12 Dec 2024 08:39:07 -0000 (UTC), Muttley wrote:
On Wed, 11 Dec 2024 22:26:56 -0000 (UTC)
Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>
On Wed, 11 Dec 2024 08:33:29 -0000 (UTC), Muttley wrote:
>
It doesn't need to , it can just spawn off a script or some other
program which does that which is entirely inline with the unix
philosophy.
>
Which is where the trouble starts.
 
The trouble is with any support scripts, not with init. I've written a
number of init scripts with a lot of surrounding logic.
>
I’m sure you have. Which means you are familiar with the wholesale copying
and pasting of boilerplate from one script to the next. “What does this
bit do?” “Don’t bother thinking too hard, just stick it in, just in
case.”

Nobody but you can be familiar with what you are doing when being forced
to write code.

God knows how I'd do that with systemd ...
>
Figure out what the directives do (they’re all documented), and which
settings will achieve the result you want. Most of the time, your service
file will be very simple and very short, since all the common cases are
already covered.
>
“Simple things should be simple, and complex things should be possible.”
    -- Alan Kay

According to an automated count (mostly perl -ne 'print $_, "\n" for
/\w+=/g') the current version of systemd supports about 320
directives and people still combine that with start scripts, be this
because their use case still isn't supported or because they didn't want
to be bothered with learning about all the details of this huge, rusted
barbed wire obstacle just for solving a simple problem.

The quote would thus more appropriate be:

Make simple things hideously complicated and complicated things at all
impossible.

-- Lennart Poettering about "How to create problems for other people for one's
   own benefit."

He was talking about GUI design, but the same applies to systemd. And to a
lot of other popular *nix software, while we’re at it.
>
Poettering understands that services don’t just to be started, they al
so need to be managed and shut down cleanly.
 
Poettering created the wrong solution to the wrong problem.
>
Lots of sysadmins, and distro maintainers, and developers of service apps,
disagree.

Due to human nature, lots of people will always disagree with anything.

Date Sujet#  Auteur
16 Nov 24 * Faking a TTY on a pipe/socketpair95Muttley
16 Nov 24 +* Re: Faking a TTY on a pipe/socketpair5Kenny McCormack
17 Nov 24 i`* Re: Faking a TTY on a pipe/socketpair4Muttley
17 Nov 24 i +- Re: Faking a TTY on a pipe/socketpair1Wolfgang Agnes
17 Nov 24 i `* Re: Faking a TTY on a pipe/socketpair2Kenny McCormack
17 Nov 24 i  `- Re: Faking a TTY on a pipe/socketpair1Muttley
17 Nov 24 +* Re: Faking a TTY on a pipe/socketpair5Kaz Kylheku
17 Nov 24 i+- Re: Faking a TTY on a pipe/socketpair1Muttley
18 Nov 24 i`* Re: Faking a TTY on a pipe/socketpair3Eric Pozharski
18 Nov 24 i `* Re: Faking a TTY on a pipe/socketpair2Kaz Kylheku
19 Nov 24 i  `- Re: Faking a TTY on a pipe/socketpair1Eric Pozharski
18 Nov 24 +* Re: Faking a TTY on a pipe/socketpair4Janis Papanagnou
18 Nov 24 i+- Re: Faking a TTY on a pipe/socketpair1Muttley
18 Nov 24 i`* Re: Faking a TTY on a pipe/socketpair2Richard Kettlewell
18 Nov 24 i `- Re: Faking a TTY on a pipe/socketpair1Muttley
3 Dec 24 +* Re: Faking a TTY on a pipe/socketpair79Muttley
3 Dec 24 i`* Re: Faking a TTY on a pipe/socketpair78Lawrence D'Oliveiro
4 Dec 24 i +* Re: Faking a TTY on a pipe/socketpair75Muttley
5 Dec 24 i i`* Re: Faking a TTY on a pipe/socketpair74Lawrence D'Oliveiro
5 Dec 24 i i +* Re: Faking a TTY on a pipe/socketpair4Kenny McCormack
5 Dec 24 i i i`* Re: Faking a TTY on a pipe/socketpair3Dan Cross
5 Dec 24 i i i `* Re: Faking a TTY on a pipe/socketpair2Kenny McCormack
5 Dec 24 i i i  `- Re: Faking a TTY on a pipe/socketpair1Muttley
5 Dec 24 i i +- Re: Faking a TTY on a pipe/socketpair1Nicolas George
5 Dec 24 i i `* Re: Faking a TTY on a pipe/socketpair68Muttley
5 Dec 24 i i  `* Re: Faking a TTY on a pipe/socketpair67Lawrence D'Oliveiro
6 Dec 24 i i   +* Re: Faking a TTY on a pipe/socketpair10Muttley
6 Dec 24 i i   i`* Re: Faking a TTY on a pipe/socketpair9Lawrence D'Oliveiro
6 Dec 24 i i   i +- Re: Faking a TTY on a pipe/socketpair1John Ames
7 Dec 24 i i   i `* Re: Faking a TTY on a pipe/socketpair7Muttley
7 Dec 24 i i   i  +* Windows-think and systemd (Was: Something completely unrelated to what we're yapping about now)5Kenny McCormack
7 Dec 24 i i   i  i+* Re: Windows-think and systemd (Was: Something completely unrelated to what we're yapping about now)2Muttley
14 Dec 24 i i   i  ii`- AIX (was Re: Windows-think and systemd)1Janis Papanagnou
8 Dec 24 i i   i  i+- Re: Windows-think and systemd (Was: Something completely unrelated to what we're yapping about now)1Kaz Kylheku
9 Dec 24 i i   i  i`- Re: Windows-think and systemd (Was: Something completely unrelated to what we're yapping about now)1Jim Jackson
9 Dec 24 i i   i  `- Re: Faking a TTY on a pipe/socketpair1Rainer Weikusat
6 Dec 24 i i   +- Re: Faking a TTY on a pipe/socketpair1Rainer Weikusat
9 Dec 24 i i   +* Re: Faking a TTY on a pipe/socketpair53Jim Jackson
10 Dec 24 i i   i+* Re: Faking a TTY on a pipe/socketpair2Lawrence D'Oliveiro
10 Dec 24 i i   ii`- Re: Faking a TTY on a pipe/socketpair1Rainer Weikusat
10 Dec 24 i i   i`* Re: Faking a TTY on a pipe/socketpair50Richard Kettlewell
10 Dec 24 i i   i `* Re: Faking a TTY on a pipe/socketpair49Muttley
10 Dec 24 i i   i  +- Re: Faking a TTY on a pipe/socketpair1Jim Jackson
10 Dec 24 i i   i  `* Re: Faking a TTY on a pipe/socketpair47Lawrence D'Oliveiro
10 Dec 24 i i   i   +- Re: Faking a TTY on a pipe/socketpair1Rainer Weikusat
11 Dec 24 i i   i   `* Re: Faking a TTY on a pipe/socketpair45Muttley
11 Dec 24 i i   i    `* Re: Faking a TTY on a pipe/socketpair44Lawrence D'Oliveiro
11 Dec 24 i i   i     +* Re: Faking a TTY on a pipe/socketpair15Jim Jackson
12 Dec 24 i i   i     i`* Re: Faking a TTY on a pipe/socketpair14Nicolas George
12 Dec 24 i i   i     i +* Re: Faking a TTY on a pipe/socketpair2Alexis
12 Dec 24 i i   i     i i`- Re: Faking a TTY on a pipe/socketpair1Nicolas George
12 Dec 24 i i   i     i +* Re: Faking a TTY on a pipe/socketpair3Lawrence D'Oliveiro
12 Dec 24 i i   i     i i`* Re: Faking a TTY on a pipe/socketpair2Muttley
12 Dec 24 i i   i     i i `- Re: Faking a TTY on a pipe/socketpair1Lawrence D'Oliveiro
13 Dec 24 i i   i     i `* Re: Faking a TTY on a pipe/socketpair8Jim Jackson
13 Dec 24 i i   i     i  `* Re: Faking a TTY on a pipe/socketpair7Lawrence D'Oliveiro
14 Dec 24 i i   i     i   `* Re: Faking a TTY on a pipe/socketpair6Jim Jackson
14 Dec 24 i i   i     i    `* Re: Faking a TTY on a pipe/socketpair5Lawrence D'Oliveiro
17 Dec 24 i i   i     i     `* Re: Faking a TTY on a pipe/socketpair4Jim Jackson
17 Dec 24 i i   i     i      `* Re: Faking a TTY on a pipe/socketpair3Lawrence D'Oliveiro
18 Dec 24 i i   i     i       `* Re: Faking a TTY on a pipe/socketpair2Jim Jackson
18 Dec 24 i i   i     i        `- Re: Faking a TTY on a pipe/socketpair1Jim Jackson
12 Dec 24 i i   i     `* Re: Faking a TTY on a pipe/socketpair28Muttley
12 Dec 24 i i   i      `* Re: Faking a TTY on a pipe/socketpair27Lawrence D'Oliveiro
13 Dec 24 i i   i       +* Re: Faking a TTY on a pipe/socketpair24Muttley
13 Dec 24 i i   i       i`* Re: Faking a TTY on a pipe/socketpair23John Ames
14 Dec 24 i i   i       i +* Re: Faking a TTY on a pipe/socketpair21Lawrence D'Oliveiro
14 Dec 24 i i   i       i i+* Re: Faking a TTY on a pipe/socketpair8Rainer Weikusat
15 Dec 24 i i   i       i ii`* Re: Faking a TTY on a pipe/socketpair7Muttley
15 Dec 24 i i   i       i ii `* Re: Faking a TTY on a pipe/socketpair6Rainer Weikusat
16 Dec 24 i i   i       i ii  `* Re: Faking a TTY on a pipe/socketpair5Muttley
16 Dec 24 i i   i       i ii   `* Re: Faking a TTY on a pipe/socketpair4Lawrence D'Oliveiro
17 Dec 24 i i   i       i ii    +* Re: Faking a TTY on a pipe/socketpair2Muttley
17 Dec 24 i i   i       i ii    i`- Re: Faking a TTY on a pipe/socketpair1Lawrence D'Oliveiro
17 Dec 24 i i   i       i ii    `- Re: Faking a TTY on a pipe/socketpair1Rainer Weikusat
16 Dec 24 i i   i       i i`* Re: Faking a TTY on a pipe/socketpair12John Ames
16 Dec 24 i i   i       i i `* Re: Faking a TTY on a pipe/socketpair11Lawrence D'Oliveiro
16 Dec 24 i i   i       i i  +- Re: Faking a TTY on a pipe/socketpair1John Ames
17 Dec 24 i i   i       i i  +* Re: Faking a TTY on a pipe/socketpair8Jim Jackson
17 Dec 24 i i   i       i i  i+* Re: Faking a TTY on a pipe/socketpair3Lawrence D'Oliveiro
17 Dec 24 i i   i       i i  ii`* Re: Faking a TTY on a pipe/socketpair2Muttley
17 Dec 24 i i   i       i i  ii `- Re: Faking a TTY on a pipe/socketpair1Lawrence D'Oliveiro
17 Dec 24 i i   i       i i  i`* Re: Faking a TTY on a pipe/socketpair4Richard Kettlewell
17 Dec 24 i i   i       i i  i +* Re: Faking a TTY on a pipe/socketpair2Lawrence D'Oliveiro
17 Dec 24 i i   i       i i  i i`- Re: Faking a TTY on a pipe/socketpair1Kenny McCormack
17 Dec 24 i i   i       i i  i `- Re: Faking a TTY on a pipe/socketpair1Rainer Weikusat
17 Dec 24 i i   i       i i  `- Re: Faking a TTY on a pipe/socketpair1Rainer Weikusat
14 Dec 24 i i   i       i `- Re: Faking a TTY on a pipe/socketpair1Muttley
13 Dec 24 i i   i       +- Re: Faking a TTY on a pipe/socketpair1Rainer Weikusat
13 Dec 24 i i   i       `- Re: Faking a TTY on a pipe/socketpair1Jim Jackson
14 Dec 24 i i   +- Re: Faking a TTY on a pipe/socketpair1Muttley
14 Dec 24 i i   `- Re: Faking a TTY on a pipe/socketpair1Lawrence D'Oliveiro
14 Dec 24 i +- Re: Faking a TTY on a pipe/socketpair1Muttley
16 Dec 24 i `- macOS and UNIX conformance (was: Faking a TTY on a pipe/socketpair)1Geoff Clare
3 Dec 24 `- Re: Faking a TTY on a pipe/socketpair1Richard Kettlewell

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal