Date: Sat, 3 Feb 1996 00:23:59 -0400 (AST) From: Charles Tassell <ctassell@isn.net> To: Tushar Patel <tushar@ecpi.com> Cc: freebsd-isp@FreeBSD.org, tpatel@ecpi.com Subject: Re: Disconnect when idle time is > 20 min? Message-ID: <Pine.LNX.3.91.960203002010.19998A-100000@phoenix.isn.net> In-Reply-To: <199602021622.QAA06721@ecpi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is just a quick hack off the top of my head, but you could write a perl script which uses's the who command to list users, then parses the data. If the idle time is greater than 20 minutes (or whatever) then the script kills the process. The script would be run by root as a cron job every 20 minutes or so. I'm no perl wizard, but it doesn't sound to complex a script to write if you know any perl. On Fri, 2 Feb 1996, Tushar Patel wrote: > > I am looking for some insight for tracking the activity on the > dial in ports (ttyd?). I wan't to see if the particular dial > in port has no activity for more then 15 min then I wan't to > disconnect user on that port. Is there any options you can > specify in FreeBSD which will allow you to do this? > > This problem is solved when user log's in with the PPP connection. > There is an option for setting timeout in the "ppp.conf" file to > do this. > > Please send your replay to > tpatel@ecpi.com > > Thanks for taking time. > > Tushar >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.3.91.960203002010.19998A-100000>