home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.aix:11834 comp.unix.wizards:4846
- Path: sparky!uunet!think.com!barmar
- From: barmar@think.com (Barry Margolin)
- Newsgroups: comp.unix.aix,comp.unix.wizards
- Subject: Re: Faking a tty port
- Date: 23 Nov 1992 04:11:20 GMT
- Organization: Thinking Machines Corporation, Cambridge MA, USA
- Lines: 15
- Message-ID: <1epll8INN2kp@early-bird.think.com>
- References: <1992Nov20.220020.17780@pacdata.uucp>
- NNTP-Posting-Host: gandalf.think.com
-
- In article <1992Nov20.220020.17780@pacdata.uucp> jimh@pacdata.com (Jim Harkins) writes:
- >So, do you know of any way to intercept output going to a tty?
-
- Does AIX have pseudo-ttys? If so, replace the tty in question with the
- slave side of a pty, and have your interception program open the master
- side.
-
- For more details, see the chapter on pseudo-ttys in "Advanced Programming
- in the UNIX Environment" by W. Richard Stevens.
-
- --
- Barry Margolin
- System Manager, Thinking Machines Corp.
-
- barmar@think.com {uunet,harvard}!think!barmar
-