linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Disconnecting users at once
@ 2003-10-20  5:52 Murali Potla
  2003-10-20  6:25 ` Tommy Tovbin
  0 siblings, 1 reply; 2+ messages in thread
From: Murali Potla @ 2003-10-20  5:52 UTC (permalink / raw)
  To: Murali Potla, admin


Hi,

I have some users (around 8) logged in to Linux server. I want to kill
(or disconnect) them all in one command. How can I do that ??

Thanks & Regards
Murali



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Disconnecting users at once
  2003-10-20  5:52 Disconnecting users at once Murali Potla
@ 2003-10-20  6:25 ` Tommy Tovbin
  0 siblings, 0 replies; 2+ messages in thread
From: Tommy Tovbin @ 2003-10-20  6:25 UTC (permalink / raw)
  To: Murali Potla; +Cc: admin

On 20 Oct 2003, Murali Potla wrote:

> 
> Hi,
> 
> I have some users (around 8) logged in to Linux server. I want to kill
> (or disconnect) them all in one command. How can I do that ??
If you wanna kill them :

for i in `ps aux | grep user | grep -v grep | awk '{print $2}'`; do kill 
-9 $i; done;


> 
> Thanks & Regards
> Murali
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

-- 
"This is UNIX country.    //=\  Tommy Tovbin
 if you listen carefully, \=//
 you can hear            //=\  tovbin at niisi dot msk dot ru
 Windows reboot..."      \=//  http://m1.sm.bmstu.ru



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-10-20  6:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-20  5:52 Disconnecting users at once Murali Potla
2003-10-20  6:25 ` Tommy Tovbin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).