Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site uwslh.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!uwvax!uwslh!dem From: dem@uwslh.UUCP (David E. Miran) Newsgroups: net.unix-wizards Subject: Need help implementing automatic signoff under 4.2 BSD UNIX. Message-ID: <137@uwslh.UUCP> Date: Mon, 7-Apr-86 16:29:18 EST Article-I.D.: uwslh.137 Posted: Mon Apr 7 16:29:18 1986 Date-Received: Thu, 10-Apr-86 00:28:31 EST Distribution: net Organization: U of Wisconsin-Madison, State Hygiene Lab Lines: 23 I am planning to implement an automatic signoff feature so that idle terminals will be signed out after 30 minutes with no activity. We are running Berkeley 4.2 Unix on a VAX-11/750. If anyone has already done this or has any useful suggestions please mail code or suggestions to: David E. Miran ...!{seismo,harvard,topaz,ihnp4}!uwvax!uwslh!dem I want to do this right so that I can correctly kill off those processes waiting for terminal input, but not those that are waiting for some other activity to complete (like a slow tape drive on a busy system). This second requirement means that the scheme used by the w or uptime program is not sufficient. I would also want to find and kill off the parent of this process and repeat until I had killed off the person's login shell, being careful not to go so far as to kill init. I have some general ideas on how to modify the kernel to allow this, but it looks like a lot of work and could hurt system efficiency it it is done poorly. Any help would be appreciated. -- David E. Miran ...!{seismo,harvard,topaz,ihnp4}!uwvax!uwslh!dem Wisconsin State Hygiene Lab (608) 262-0019 University of Wisconsin 465 Henry Mall Madison, WI 53706