[lug] kill a process

Evelyn Mitchell efm at tummy.com
Sun Sep 9 20:04:57 MDT 2001


killall <processname> 
will kill all processes with the same name.
This won't work if they have fork() then exec(), because
they will have different names.

I do 

  killall netscape-communicator

with great regularity.
If that doesn't work
ps -awlx |grep <some part of name>
Will give a list of the process ids to kill. 
[efm at gwen projtrack]$ ps awlx |grep netscape
000   500  4373     1  14   0 73752 28272 -     R    ?         22:32 /usr/lib/netscape/netscape-communicator -irix-session-managemen
404    62  4397  4373   8   0     0    0 do_exi Z    ?          0:00 [netscape-commun <defunct>]
000   500 20212 23804   9   0  1736  612 pipe_w S    pts/9      0:00 grep netscape

The third column is the process id.
  kill -HUP 4373 4379
would kill the netscapes.

Evelyn

On Sun, Sep 09, 2001 at 07:54:00PM -0400, Taz wrote:
> Does anybody know how to kill an existing process and any children
> associated with it?
> 
> Jeff
> 
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug



More information about the LUG mailing list