Weekly tidbits of MySQL observations, discoveries, and learnings
Friday, July 15, 2016
Killing lots of linux processes from the command line
I run a lot of bash scripts from the crontab to automate database tasks. Sometimes my bash scrips get carried away and don't finish. When this happens I need to kill them. I use pkill.
How to kill processes from the command line that match a patters:
pkill -f my_pattern
Thank you to this post:
http://stackoverflow.com/questions/8987037/how-to-kill-all-processes-with-a-given-partial-name
No comments:
Post a Comment