home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / question / 9441 < prev    next >
Encoding:
Internet Message Format  |  1992-07-26  |  1.6 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!mips!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!casbah.acns.nwu.edu!navarra
  2. From: navarra@casbah.acns.nwu.edu (John Navarra)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: Writing to multiple terminals
  5. Message-ID: <1992Jul27.000308.18388@news.acns.nwu.edu>
  6. Date: 27 Jul 92 00:03:08 GMT
  7. References: <1992Jul26.233024.5849@mnemosyne.cs.du.edu>
  8. Sender: usenet@news.acns.nwu.edu (Usenet on news.acns)
  9. Organization: Northwestern University, Evanston Illinois.
  10. Lines: 34
  11.  
  12. In article <1992Jul26.233024.5849@mnemosyne.cs.du.edu> sshrivas@mnemosyne.cs.du.edu (Sumeet Shrivastava) writes:
  13. >
  14. >
  15. >Hi,
  16. >    Is there someway that one can write to multiple terminals ?
  17. >
  18. >    i.e. I want to give a demo, so how can a person on another terminal
  19. >    see whatever is the output on my terminal ? ... assuming that the 
  20. >    other person is logged on to the same machine but with a different login.
  21. >
  22.  
  23.     Yes, here are two which come to mind:
  24.  
  25. 1) Get the expect script called 'kibitz'. This not only lets other users
  26.    see what you are doing on your machine but also lets them participate.
  27.    As a teaching tool, it has it merits but all users will be granted full
  28.    permissions of the person who initiates the kibitz, so if that is not
  29.    what you want, try #2
  30.  
  31. 2) Use the command:
  32.  
  33.    script /dev/null | tee /dev/ttyp1 | tee /dev/ttyp2 | ... | tee /dev/ttypN
  34.  
  35.  
  36. This is more of a pain in the ass because you need to know everyone's tty
  37. number. It is simple enough to write a script to find them though I suppose.
  38.  
  39. Good luck
  40. -tms
  41.  
  42. -- 
  43. From the Lab of the MaD ScIenTiST:
  44.                     
  45. navarra@casbah.acns.nwu.edu        
  46.