Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Unix admin user time out

Re: Unix admin user time out

From: guy ruth hammond <grh_at_agency.com>
Date: Tue, 04 Jul 2000 08:28:31 +0100
Message-Id: <10548.111154@fatcity.com>


Steff Gonos wrote:

> Does anyone have any scripts that could do this ?
> I realize that I have other options, like ask her
> not to do this, or leave my session up and prevent her
> from jumping on, but there are a few others who need
> to use it also.

I guess you could write a cron job to parse the output of the 'w' command, which has a column for idle time, and if it exceeds a threshold, try kill -KILL `ps -ef|awk '($1 == $USERNAME) { print $2 }'`

g

-- 
guy ruth hammond <grh_at_agency.com> | One is punished for being
Technology Analysis & Consulting  | weak, not for being cruel.
07879607148 http://www.agency.com |       -- Baudelaire
Received on Tue Jul 04 2000 - 02:28:31 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US