Saturday, February 5, 2011

AWK code fragment to kill process with unknown PID

AWK code fragment to kill process with unknown PID

# ps -ef | grep process | grep -v grep | awk '{system("kill -9 " $2)}'

No comments:

Post a Comment