LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices

Reply
 
Search this Thread
Old 02-28-2007, 08:00 AM   #1
xyrer
LQ Newbie
 
Registered: Feb 2007
Posts: 13

Rep: Reputation: 0
kill idle users


Hi, I'm using AIX 5 and we have many users accesing by internet but the problem is that they use an emulator named anita wich disconnects in the client but somehow it doesn't in the server, i want to make a script to kill all user idle for more than half an hour, but i'm more a linux user than AIX, any light about it will be welcome.
 
Old 02-28-2007, 11:02 AM   #2
looseCannon
Member
 
Registered: Dec 2003
Location: Little Rock, AR
Distribution: Fedora Core 2, AIX, HP-UX, Solaris, Whitebox
Posts: 193

Rep: Reputation: 31
Update /etc/environment and add a line that reads:

TMOUT=1800

That will time out the shell for an idle user after 30 minutes. That should help with the problem going forward. Killing current idle users will take some more research and testing.
 
Old 03-15-2007, 10:40 AM   #3
xyrer
LQ Newbie
 
Registered: Feb 2007
Posts: 13

Original Poster
Rep: Reputation: 0
Well, I'm afraid that didn't work out, I use who -u to list processes, then I kill -9 the processes that have been idle for more than an hour, will that be of any help?
 
Old 05-06-2007, 02:35 PM   #4
gautamatul82
LQ Newbie
 
Registered: Aug 2006
Posts: 2

Rep: Reputation: 0
Dude,

You need to put the same entry into the file /etc/profile, not /etc/environment and your problem should get resolved.



Atul
 
Old 05-07-2007, 09:17 AM   #5
mudman69
Member
 
Registered: Mar 2007
Distribution: Whatever Works
Posts: 44

Rep: Reputation: 16
Hey Xyrer, what level of AIX 5 are you using? I know I had the same problem with a Forms appliction we were running. We were running AIX 5.3 ML3 with the CSP. I contacted IBM support and they said it was a known problem and it would be fixed with the next TL. When I upgraded to TL4 with the CSP it went away.
 
  


Reply

Tags
idle, scripting, user


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Attempted to kill idle task dasy2k1 Slackware 7 12-03-2005 06:55 PM
How to kill an idle user via the command line? goemon Linux - General 7 12-01-2005 06:01 PM
kernel panic : attempted to kill the idle task abirami Linux - Software 0 09-06-2004 03:56 AM
kill idle user ust Linux - Software 3 08-31-2004 02:19 PM
who idle user how to kill saavik Linux - Networking 1 03-04-2004 10:12 AM


All times are GMT -5. The time now is 03:08 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration