title: ps aux auto close app
body: <p>I'm trying to setup a task to kill certain server processes when the server gets into a weird state such as when it fails to boot one process, but another process gets keeps running and so not everything boots up. This is mainly a task for development so you can do <code>jake killall</code> to kill all processes associated with this project.</p>
  
  <p>I'm having trouble figuring out how to get the <code>pid</code> after doing: <code>ps aux | grep [p]rocess\ name | {HOW DO I GET THE PID NOW?}</code> and then after getting the ID how do I pass that to <code>kill -9 {PID HERE}</code></p>