Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evertontrindade/b3cd48ab8b331d291b5387bb7c1ab960 to your computer and use it in GitHub Desktop.
Save evertontrindade/b3cd48ab8b331d291b5387bb7c1ab960 to your computer and use it in GitHub Desktop.
Shell script created to kill process by application name
#!/bin/bash -x
kill -9 $(ps aux | grep PROCESS_NAME | grep -v grep | awk '{print $2}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment