Deutsch English Français Italiano |
<vr05s0$cm14$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Janis Papanagnou <janis_papanagnou+ng@hotmail.com> Newsgroups: comp.unix.shell Subject: Re: Initiate command in another shell session? Date: Fri, 14 Mar 2025 03:55:59 +0100 Organization: A noiseless patient Spider Lines: 33 Message-ID: <vr05s0$cm14$1@dont-email.me> References: <vquhba$3817f$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Date: Fri, 14 Mar 2025 03:56:01 +0100 (CET) Injection-Info: dont-email.me; posting-host="cbb06476437e46b65e706df311f71c8a"; logging-data="415780"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19gc0bjFky/OpMpMKhVfUdP" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 Cancel-Lock: sha1:sJ52PwBqFVbECYz1NrbhK0qgDOM= In-Reply-To: <vquhba$3817f$1@dont-email.me> X-Enigmail-Draft-Status: N1110 Bytes: 2313 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