[SunHELP] kill

Jonathan Fortin sunhelp at sunhelp.org
Wed Jun 20 18:34:44 CDT 2001


If your using solaris 7 and above, I would recommend a more simple approach.

try pkill -u userid process.

Regards,

Jonathan

----- Original Message ----- 
From: "Naresh" <naresh at optimnetworks.com>
To: <sunhelp at sunhelp.org>
Sent: Wednesday, June 20, 2001 7:03 PM
Subject: Re: [SunHELP] kill


> 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
> 




More information about the SunHELP mailing list