Tuesday, January 17, 2012

Find a process and kill it in a script in Linux

ps -ef | grep process_name | awk '{ print $2; }'| xargs kill -9

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.