2009/5/17 <hants...@googlemail.com>
> ....  ps -A | grep ktorrent followed by
> kill seems to have cured the problem.

I have had to do such things that many times that I came up with a one liner :

 ps -eafw | grep morituri | awk '{print $2}' |  xargs kill

Disclaimers:
Different people have different favourite 'ps' invocations embedded in
their finger memories. The above is mine.
A purist would say there should be a 'grep -v grep |' in the pipeline
as well. A /real/ purist would say there shouldn't and that there
should be one grep with a regex.

-- 
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--------------------------------------------------------------

Reply via email to