Hi Victor, On Mon, May 18, 2009 at 10:35:43AM +0100, Victor Churchill wrote: > 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.
Someone else would use pkill instead of the lot of it. ;) Cheers, Andy -- http://bitfolk.com/ -- No-nonsense VPS hosting "If you only ever read one book in your life, I highly recommend you keep your mouth shut." -- The League Against Tedium
signature.asc
Description: Digital signature
-- 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 --------------------------------------------------------------