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.



--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to