[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: kill with regex?



On Mon, 2003-01-20 at 02:40, Hugh Saunders wrote:
> ps x gives a list of xine's which i would like to kill

My preferred method is:
$ kill `ps -C xine -o pid=`
OR
$ ps -C xine -o pid= | xargs kill

This is subtly different from the other suggestions (such as "killall
xine"), as it kills anything beginning with xine.  This is very useful
for killing evolution and its components when a major error occurs.


-- 
Michael Wardle <michael.wardle@adacel.com>
Adacel Technologies



Reply to: