[Sunhelp] kill script

Dennis L. Lund dllund at hermes.nextel.com
Tue Aug 15 20:17:05 CDT 2000


From: Erik Parker <eparker at mindsec.com>
To: "'sunhelp at sunhelp.org'" <sunhelp at sunhelp.org>
Subject: RE: [Sunhelp] kill script
MIME-Version: 1.0
X-BeenThere: sunhelp at sunhelp.org
X-Mailman-Version: 2.0beta5
List-Id: General discussion / help / chat about Sun machines and software <sunhelp.sunhelp.org>

On Tue, 15 Aug 2000, Heshmati, Sardar wrote:

>> 
>> 
>> kill -9 `ps -aef|grep user |awk '{ print $2 }'`

>100 would be the userid of that user
>
>kill -9 `ps -eu 100|awk '{ print $1 }'`
>
I don't think you want to use th "e" option to "ps".  This option
lists "every process".  If you execute this as root, you will "kill"
alot more then you intended to.  Just uset ps -u 100.

Dennis L. Lund
e-mail: dllund at hermes.nextel.com





More information about the SunHELP mailing list