- To: terryc@xxxxxxxxxx
- Subject: Re: [SLUG] Select and kill running process
- From: "Stuart Cooper" <stucoope@xxxxxxxxx>
- Date: Tue Aug 22 10:14:05 2000
- Cc: slug@xxxxxxxxxxx
Hello Sluggers
list process | grep desired-process | kill desired-process
Can someone tell me the format of the last part?
ps axf | grep process | kill -9 "process???"
Others have presentented you with some clever shell/perl/awk/backtick
ways of doing this. More convenient for me is a command called "killall"
which does this stuff for you; it's part of a package called 'psmisc' on my
system, psmisc also contains the useful fuser and pstree commands.
$ killall netscape-communicator
$ killall -9 netscape-communicator
Hope this helps,
Stuart.