Sujet : Re: Initiate command in another shell session?
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.unix.shellDate : 14. Mar 2025, 03:55:59
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vr05s0$cm14$1@dont-email.me>
References : 1
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 13.03.2025 12:59, Janis Papanagnou wrote:
The question occurred to me whether it would be possible to remotely
execute a command as if started from another shell session *in* that
shell session.
My first thought was that it might be an undesirable property (if only
for "security reasons", or more likely, generally).
What I can do is
[...]
I guess the answer to my question is simply "no", but I'd like to have
a confirmation (and possibly more specific rationales or remarks).
I'll followup my own post to thank all repliers for their thoughts
and suggestions in a single reply.
Just to clarify, the question was meant to operate on the running
system (sort of "on top") as it is, without changing or preparing
the already running components. In a recent post I explained my
thoughts by...
"My unformed thoughts went along the line of how a pty intercepts
communication to a process, probably combined with an attachment
to a process (as I recall you can attach a debugger to a running
process)."
This probably doesn't work - I'm not sure, and I haven't pondered
about it long enough - but that uncertainty was why I was asking
for thoughts, ideas, hints, remarks.
Janis