Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!rutgers!labrea!decwrl!sun!guy From: guy@sun.uucp (Guy Harris) Newsgroups: comp.unix.xenix,comp.sources.wanted,comp.unix.questions Subject: Re: tty watcher Message-ID: <27909@sun.uucp> Date: Mon, 14-Sep-87 14:55:01 EDT Article-I.D.: sun.27909 Posted: Mon Sep 14 14:55:01 1987 Date-Received: Tue, 15-Sep-87 07:14:03 EDT References: <4263@ozdaltx.UUCP> <15136@hi.UUCP> <1178@mtune.ATT.COM> <18247@amdcad.AMD.COM> Organization: Sun Microsystems, Inc. - Mtn View, CA Lines: 16 Xref: mnetor comp.unix.xenix:735 comp.sources.wanted:2247 comp.unix.questions:4070 > What about a new getty which, instead of exec'ing the user's shell, > forks the shell with a pseudo-tty as a terminal, then "watches" the real > terminal, sending the characters received & sent both to the pseudo-tty > as well as to the snooper? That wouldn't involve hacking the kernal at > all. Unless, of course, your kernel lacks pseudo-ttys.... This also requires you to hack "getty", although you could have the pseudo-"getty" set up the pseudo-tty and run the real "getty" immediately, thus obviating the need to duplicate all of "getty"'s functionality (painful to do without source). -- Guy Harris {ihnp4, decvax, seismo, decwrl, ...}!sun!guy guy@sun.com (or guy@sun.arpa)