Article View: comp.unix.misc
Article #1805Re: Terminal "mimic" program wanted
From: Miquel van Smoorenburg
Date: Mon, 04 May 1992 10:31
Date: Mon, 04 May 1992 10:31
42 lines
1942 bytes
1942 bytes
In article <MYCROFT.92May2145124@hal.gnu.ai.mit.edu> mycroft@hal.gnu.ai.mit.edu (Charles Hannum) writes: > >In article <1992May1.050346.11714@marlin.jcu.edu.au> >ccimh@marlin.jcu.edu.au (Ian M. Hunter) writes: >> >> We have had a request for Unix software which will permit what is >> happening on one terminal to be echoed on another (or, preferably, >> others) for demonstration purposes. > >The simplest way to do this: > >* Say user "A" is doing something, and users "B" and "C" want to watch. > >* User "A" runs `script'. This starts logging *all output* from his >session to a file "typescript". > [ stuff deleted ] This might interest you - a script called 'cptty' ------x---cut here----x------- #!/bin/sh name=`basename $0` if [ $# = 0 ] then echo "Usage: "$name" <terminal> [ term2 term3 ... ]" exit 1 fi TERMS= while [ A$1 != A ] do term=/dev/$1 if test ! -w $term then echo $name": cannot open "$term" for writing" exit 1 fi TERMS=$TERMS" "$term shift done exec script /dev/null 2>&1 | tee $TERMS -----x----cut here---x-------
Technical Details
Message-ID:
<1992May4.103101.28521@viool.htsa.aha.nl>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!htsa!bongo!miquelsReferences:
<1992May1.050346.11714@marlin.jcu.edu.au> <MYCROFT.92May2145124@hal.gnu.ai.mit.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f72b0,4c9ccac657b55bd5 X-Google-Attributes: gidf72b0,public X-Google-Thread: f8ff0,4c9ccac657b55bd5 X-Google-Attributes: gidf8ff0,public X-Google-Thread: f8863,4c9ccac657b55bd5 X-Google-Attributes: gidf8863,public X-Google-ArrivalTime: 1992-05-04 03:31:01 PST Newsgroups: comp.unix.misc,aus.wanted,alt.sources.wanted Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!htsa!bongo!miquels From: miquels@bongo.htsa.aha.nl (Miquel van Smoorenburg) Subject: Re: Terminal "mimic" program wanted Message-ID: <1992May4.103101.28521@viool.htsa.aha.nl> Sender: news@viool.htsa.aha.nl (The News Manager) Organization: Algemene Hogeschool Amsterdam TMF dept EE References: <1992May1.050346.11714@marlin.jcu.edu.au> <MYCROFT.92May2145124@hal.gnu.ai.mit.edu> Date: Mon, 4 May 1992 10:31:01 GMT Lines: 43