Disconnecting users at once

Disconnecting users at once

am 20.10.2003 07:52:46 von Murali Potla

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


-
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

Re: Disconnecting users at once

am 20.10.2003 08:25:09 von Tommy Tovbin

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


-
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