Hook up into another Terminal process?
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 t开发者_如何学Pythono be in process level.
I'm using Ruby and Ubuntu.
Install GNU Screen, run screen
in the first terminal, then screen -x
in the second.
(This works for both input and output).
Go hack the kernel.
But if you need a practical workarou^Wsolution, I'd advise using screen
.
精彩评论