*BSD News Article 36099


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!spool.mu.edu!howland.reston.ans.net!europa.eng.gtefsd.com!MathWorks.Com!news.kei.com!ddsw1!not-for-mail
From: jal@MCS.COM (John A. LaCour III)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Limiting Online Time
Date: 23 Sep 1994 23:51:58 -0500
Organization: /usr/lib/news/organi[sz]ation
Lines: 18
Message-ID: <360b9e$h8v@Mercury.mcs.com>
References: <CwLnBq.439@nsinet.com>
NNTP-Posting-Host: mercury.mcs.com

In article <CwLnBq.439@nsinet.com>, Cam Bevis <cbevis@nsinet.com> wrote:
>  Hello all.  One of my tty ports is hooked to a modem on which customers 
>can call.  Some of them are over-staying their welcome on this modem.  Is 
>there a way I can limit their online time?  I thought of cron'ing a 
>shell script that would grep and parse the process table and act on the 
>info accordingly.  Better ideas, anyone?  Thanks.  Cam 

Many modems can be configured so that when no data is passed for a certain
length of time, the connection is dropped.  If such an option is available
to you, that would be my recommendation.

If you must write a program, I would suggest having cron run a program
that compares the login time from lastlog with the current time, for 
users current logged in.  Should be easier than play with process stuff.

John