Cory Petkovsek wrote:
> I want to duplicate output (and input) of one terminal to another. How can
> I do this?
>
> Here is an applied scenario: I'm training someone 100 miles away. I can
> ssh into their system, while he will log in locally. I know how to directly
> write to another terminal: "echo Hi > /dev/pts/1". How can we share a
> terminal so that I can at least see what he is typing and what the output
> is. If I could type as well that would be great. We are talking console
> only here. However using X is a possibility if there is no console
> solution.
script -f /tmp/ttylog
That only lets one of you type, but the other can watch using
tail -f /tmp/ttylog &
The nontypist can run write(1) to send one-line messages to the
typist.
write /dev/console # or whatever the correct tty is
Script, tail and write were both around before 1980, BTW. Nothing new
in console software.
--
Bob Miller K<bob>
kbobsoft software consulting
http://kbobsoft.com [EMAIL PROTECTED]