Skip to content

Instantly share code, notes, and snippets.

@sergioska
Created April 3, 2014 15:03
Show Gist options
  • Save sergioska/9956037 to your computer and use it in GitHub Desktop.
Save sergioska/9956037 to your computer and use it in GitHub Desktop.
kill a process by name
# replace <process_name> with real process name
kill -s KILL `ps faux | grep <process_name> | grep php | egrep -o '\s+([0-9]*)\s+.*' | egrep -o '[0-9]+\s*' | head -1`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment