I’ve got two terminal instances/processes opened with different PID.
Is it possible to from one of them, hook up into the other so when I type something and it outputs something, then the other terminal will see the output too (maybe the input too if possible?).
Just like cloning the terminals.
I want this because then I can hook up some SSH processes and everyone connected to the machine could see what the other one is doing and could also collaborate.
I don’t want to use any GUI or other workarounds for this.
Want it to be in process level.
I’m using Ruby and Ubuntu.
Install GNU Screen, run
screenin the first terminal, thenscreen -xin the second.(This works for both input and output).