[SunHELP] kill

Wally A. Alubankudi sunhelp at sunhelp.org
Thu Jun 21 05:56:16 CDT 2001


Thanks All. The problem has been solved with this command.
# ps -ef | grep user | grep -v grep | awk '{print $2}' | sort -r | xargs 
kill -9
If i dont sort it the system will freeze and you may have to reboot but sort 
will kill Parent and child process accordingly.
wally


>From: "Naresh" <naresh at optimnetworks.com>
>Reply-To: sunhelp at sunhelp.org
>To: <sunhelp at sunhelp.org>
>Subject: Re: [SunHELP] kill
>Date: Wed, 20 Jun 2001 16:03:23 -0700
>
>This works for me:
>ps -ef|grep USER|grep -v grep|awk '{print $2}'|xargs kill -9
>
>Naresh
>----- Original Message -----
>From: "Wally A. Alubankudi" <walubank at hotmail.com>
>To: <sunhelp at sunhelp.org>
>Sent: Wednesday, June 20, 2001 7:31 AM
>Subject: [SunHELP] kill
>
>
> > Hi All,
> >       I am trying to kill all processes that belong to a user but my
>command
> > fail, checkout my command and see what is wrong.
> > # ps -e | grep foo | grep -v grep | awk '{print $1}' xargs kill -9
> > Wally
> > _________________________________________________________________
> > Get your FREE download of MSN Explorer at http://explorer.msn.com
> >
> > _______________________________________________
> > SunHELP maillist  -  SunHELP at sunhelp.org
> > http://www.sunhelp.org/mailman/listinfo/sunhelp
> >
>
>_______________________________________________
>SunHELP maillist  -  SunHELP at sunhelp.org
>http://www.sunhelp.org/mailman/listinfo/sunhelp

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com




More information about the SunHELP mailing list