Linux: Kill and Grep
I find these commands useful to kill all processes running from a given script or have the same process name:
kill -9 `ps -ef | grep scriptname.sh | grep -v grep | awk ‘{print $2}’`
kill -9 `ps -ef | grep pdksh | grep -v grep | awk ‘{print $2}’`
[ad#ad-post]