Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Unix admin user time out
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 | -- BaudelaireReceived on Tue Jul 04 2000 - 02:28:31 CDT