duplicate output to multiple terminals
Peter Fales
psfales at cbnewsc.ATT.COM
Fri Nov 10 11:02:47 AEST 1989
In article <256 at telxon.UUCP>, dank at telxon.UUCP (Dan Kelley) writes:
>
> I am looking for an idea to duplicate output on different terminals.
> Obviously, the choice at first is easy, just use the "tee" program
> in this manner:
> program | tee /dev/tty???
>
> Well, I have done this and am still having problems getting everything
> to the device(s).
The trick I saw to do this recently really made me sit up and take
notice...
The "teacher" executes the following command:
cu XXXX | tee /tmp/tmpfile
where XXX is a phone number or machine name for the computer to
be demonstrated (this may result in logging in to the same machine
running the cu command, but not necessarily).
The "students" run
tail -f /tmp/tmpfile
I don't totally understand why this works, but it does. You can even
see all the "teacher's" key strokes in real time.
--
Peter Fales AT&T, Room 5B-420
N9IYJ 2000 N. Naperville Rd.
UUCP: ...att!peter.fales Naperville, IL 60566
Domain: peter.fales at att.com work: (312) 979-8031
More information about the Alt.sources
mailing list