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 > > > - > : send the line "unsubscribe linux-admin" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > 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 - : send the line "unsubscribe linux-admin" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html