Autologout of unused terminals

David Lai lai at vedge.UUCP
Fri Dec 2 07:14:32 AEST 1988


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 at larry.mcrcim.mcgill.edu || ...watmath!onfcanim!vedge!lai)



More information about the Comp.unix.wizards mailing list