Xref: utzoo comp.sources.wanted:9349 alt.sources:1201 misc.wanted:6842
Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!att!cbnewsc!psfales
From: psfales@cbnewsc.ATT.COM (Peter Fales)
Newsgroups: comp.sources.wanted,alt.sources,misc.wanted
Subject: Re: duplicate output to multiple terminals
Summary: Great trick!
Message-ID: <4647@cbnewsc.ATT.COM>
Date: 10 Nov 89 00:02:47 GMT
References: <256@telxon.UUCP>
Organization: AT&T Bell Laboratories
Lines: 33

In article <256@telxon.UUCP>, dank@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@att.com	work:	(312) 979-8031