1752798 Members
5964 Online
108789 Solutions
New Discussion юеВ

Re: multiple sessions

 
Caster Troy
Regular Advisor

multiple sessions

Hi Experts,
i have got many users logging in on my server and working with different applications remotely. Almost all of them disconnect and do not log off, resulting in many processes left hanging in the system. when i do a who -u i can see many sessions with same user id that are 2-3 days old and still there. how can i terminate these sessions without harming the current session of same user? plz help
Evil Has Its Winning Ways
2 REPLIES 2
Ivan Ferreira
Honored Contributor

Re: multiple sessions

You should create a script that runs via cron that uses the "w" command to identify who is IDLE by a certain amount of time and kill the process.

Some samples here:

http://forums12.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1222004754325+28353475&threadId=602197
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Caster Troy
Regular Advisor

Re: multiple sessions

Thanks for the reply Ivan, but i am totally new to Linux, and this cron and scripting is French to me. Thats why i wanted a simple command in which i can do something like kill user56 /pts4.....
anyhow thanks again
Evil Has Its Winning Ways