Sujet : Re: Initiate command in another shell session?
De : naddy (at) *nospam* mips.inka.de (Christian Weisgerber)
Groupes : comp.unix.shellDate : 13. Mar 2025, 20:28:22
Autres entêtes
Message-ID : <slrnvt6cem.u2t.naddy@lorvorc.mips.inka.de>
References : 1
User-Agent : slrn/1.0.3 (FreeBSD)
On 2025-03-13, Janis Papanagnou <janis_papanagnou+
ng@hotmail.com> 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.
The short answer is "no".
The slightly longer answer: Sure, if that shell offers an interface
that a remote process can send commands to and which the shell then
executes. In reality, shells don't offer this.
The closest thing might be tmux(1), where you can attach to a remote
session and interact with it in various ways.
http://tmux.github.io/-- Christian "naddy" Weisgerber naddy@mips.inka.de