From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8c9b,e34f8bf95ca3b17 X-Google-Attributes: gidf8c9b,public X-Google-Thread: fee84,e34f8bf95ca3b17 X-Google-Attributes: gidfee84,public X-Google-Thread: f678f,e34f8bf95ca3b17 X-Google-Attributes: gidf678f,public X-Google-Thread: 1020c6,e34f8bf95ca3b17 X-Google-Attributes: gid1020c6,public X-Google-Thread: 10b612,e34f8bf95ca3b17 X-Google-Attributes: gid10b612,public From: Phil Farrell Subject: Re: (Arrgh) Logout idle users (NOT w/ tcsh...) Date: 1995/06/09 Message-ID: <3racsc$8gp@nntp.Stanford.EDU>#1/1 X-Deja-AN: 104151861 references: <3r66od$dj1@valhalla.cs.wright.edu> <3r78pe$bv2@news.mtu.edu> <3r7msb$rh2@post.gsfc.nasa.gov> <1995Jun8.234649.4584@scic.intel.com> content-type: text/plain; charset=us-ascii organization: Stanford Univ. School of Earth Sciences x-url: news:1995Jun8.234649.4584@scic.intel.com mime-version: 1.0 newsgroups: comp.unix.admin,comp.unix.osf.misc,comp.unix.osf.osf1,comp.unix.questions,comp.unix.ultrix x-mailer: Mozilla 1.1N (Macintosh; I; 68K) I wrote a "new" awk script to find and kill idle login sessions. I run it once per hour from cron. It has provisions for exempting daemons and special users, as well as special programs that may have to run in the foreground but leave the terminal idle for long periods. It uses "w", "ps", and awk to do its work. I wrote it for Ultrix and it will probably need some minor changes for other systems. You can get a copy via anonymous ftp to pangea.stanford.edu, in pub/idlekiller.tar. Phil Farrell, Computer Systems Manager Stanford University School of Earth Sciences farrell@pangea.stanford.edu