Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!sundc!sun!decwrl!labrea!jade!ucbvax!sdcsvax!ucsdhub!jack!man!nusdhub!rwhite From: rwhite@nusdhub.UUCP (Robert C. White Jr.) Newsgroups: comp.windows.x,comp.unix.questions Subject: Re: getty under X? Message-ID: <140@nusdhub.UUCP> Date: Sat, 17-Oct-87 19:16:27 EDT Article-I.D.: nusdhub.140 Posted: Sat Oct 17 19:16:27 1987 Date-Received: Sun, 18-Oct-87 22:45:18 EDT References: <1724@oxtrap.UUCP> Organization: National University, San Diego Lines: 26 Summary: Duplicity Xref: mnetor comp.windows.x:1711 comp.unix.questions:4574 In article <1724@oxtrap.UUCP>, rich@oxtrap.UUCP (K. Richard Magill) writes: > Can anyone tell me how to run a getty under X? I don't know enough to comment about "X" but this is how I made a program that logs people out if they leave their systems idle to long: init runs "my program" "my program" forks itself. the "parent" version of "my program" exec(s) getty getty continues normally.... The child version of "my program" uses kill w/sig 0 to make shure getty or login or whatever [that had the parent process number] is still running. If not, it suicides. If so, it stat(s) the tty line. If now - stat is greater than x, it kill(app signal)(s) the parent process id, and suicides after the "parent" process dies. otherwise it sleeps, and then loops. You might try a variant of this with whatever "X" does, possibly allowing a "backside" rondivous between the "spy" and the main invocation of "x" Disclaimer: it's just a thought... Robert