Send As SMS

1/17/2006

kill stubborn processes

if you're having difficulty killing recalcitrant jobs or programs, try this short but sweet script. note that this will even work for the mac; just use the terminal.app. i find this to be even faster than the apple-option-esc shortcut.

#!/bin/sh

#end recalcitrant processes

ID=$1
kill -9 `ps ax | grep -i "$ID" | awk '{print $1}'`
if you save it something like "slay.sh", use it like:
slay.sh name-of-program
(mad props go to CWigs for inspiring this script)


0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home

My blog has moved! Redirecting...

You should be automatically redirected. If not, visit http://stinkpot.afraid.org:8080/tricks/ and update your bookmarks.