home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / aix / 11834 < prev    next >
Encoding:
Internet Message Format  |  1992-11-22  |  989 b 

  1. Xref: sparky comp.unix.aix:11834 comp.unix.wizards:4846
  2. Path: sparky!uunet!think.com!barmar
  3. From: barmar@think.com (Barry Margolin)
  4. Newsgroups: comp.unix.aix,comp.unix.wizards
  5. Subject: Re: Faking a tty port
  6. Date: 23 Nov 1992 04:11:20 GMT
  7. Organization: Thinking Machines Corporation, Cambridge MA, USA
  8. Lines: 15
  9. Message-ID: <1epll8INN2kp@early-bird.think.com>
  10. References: <1992Nov20.220020.17780@pacdata.uucp>
  11. NNTP-Posting-Host: gandalf.think.com
  12.  
  13. In article <1992Nov20.220020.17780@pacdata.uucp> jimh@pacdata.com (Jim Harkins) writes:
  14. >So, do you know of any way to intercept output going to a tty?
  15.  
  16. Does AIX have pseudo-ttys?  If so, replace the tty in question with the
  17. slave side of a pty, and have your interception program open the master
  18. side.
  19.  
  20. For more details, see the chapter on pseudo-ttys in "Advanced Programming
  21. in the UNIX Environment" by W. Richard Stevens.
  22.  
  23. -- 
  24. Barry Margolin
  25. System Manager, Thinking Machines Corp.
  26.  
  27. barmar@think.com          {uunet,harvard}!think!barmar
  28.