Path: utzoo!utgpu!watmath!clyde!att!rutgers!mailrus!tut.cis.ohio-state.edu!bloom-beacon!mcgill-vision!iros1!vedge!lai From: lai@vedge.UUCP (David Lai) Newsgroups: comp.unix.wizards Subject: Re: Autologout of unused terminals Message-ID: <2113@vedge.UUCP> Date: 1 Dec 88 21:14:32 GMT Reply-To: lai@vedge.UUCP (David Lai) Organization: Visual Edge Software, St. Laurent, PQ Lines: 14 I wrote a little script that uses output from 'w', and output from 'ps', and if 'w' reports more than 1 hr idle time on a dialin port, then it kill -HUP's all processes on that port as reported from ps. It does have a problem, perhaps someone can elaborate on, it logs the user off, but keeps the carrier on, so the line is useless anyways. Is there some way to force the carrier to be dropped on a KILL -HUP? (sun 3, ALM, port configured for modem, DTR dropping will hang up, but kill -HUP doesn't seem to do it). -- "What is a DJ if he can't scratch?" - Uncle Jamms Army The views expressed are those of the author, and not of Visual Edge, nor Usenet. David Lai (vedge!lai@larry.mcrcim.mcgill.edu || ...watmath!onfcanim!vedge!lai)