Skip to content

Instantly share code, notes, and snippets.

@j-mcnally
Created November 9, 2011 23:36
Show Gist options
  • Save j-mcnally/1353554 to your computer and use it in GitHub Desktop.
Save j-mcnally/1353554 to your computer and use it in GitHub Desktop.
Kill a proccess you don't know the pid of
#!/bin/sh
pid=`ps aux | grep -i "/path/to/app/as/started" | grep -v "grep" | awk '{print $2}'`
kill $pid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment