Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!sdd.hp.com!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!davis From: davis@pacific.mps.ohio-state.edu ("John E. Davis") Newsgroups: comp.unix.questions Subject: Re: Preventing Idle in telnet, security, and bg. Message-ID: Date: 1 Oct 90 22:46:23 GMT References: <14228@hydra.gatech.EDU> <2903@idunno.Princeton.EDU> <2526@cirrusl.UUCP> Sender: news@pacific.mps.ohio-state.edu Reply-To: davis@pacific.mps.ohio-state.edu (John E. Davis) Distribution: comp Organization: "Dept. of Physics, The Ohio State University" Lines: 20 In-reply-to: brian%cirrusl@oliveb.ATC.olivetti.com's message of 1 Oct 90 17:57:11 GMT |The simplest thing to do is: |Assuming you have a line like 'progname &' in your .login, |put something like 'kill -9 %progname' in your .logout . |What else? | -- Brian Actually, it is not this simple. The program is meant to be run on only those terminals which have a status line. So I would have to put 'if' statements in the .logout and it would start to get ugly and not very elegent. I finally used 'fork' to startup a child process which then looks for the presence of its parent and then exits if the parent is gone. This idea was originally suggested to me by adb@cs.bu.edu (Adam Bryant). -- John bitnet: davis@ohstpy internet: davis@pacific.mps.ohio-state.edu