Skip to content

Instantly share code, notes, and snippets.

@padi
Created August 17, 2017 02:46
Show Gist options
  • Save padi/f838698a6a0fe5af2df852cd72dc0e35 to your computer and use it in GitHub Desktop.
Save padi/f838698a6a0fe5af2df852cd72dc0e35 to your computer and use it in GitHub Desktop.
Script to kill all spring and rogue ruby processes
#!/bin/sh
ps aux | grep ruby | grep -v grep | awk '{print $2}' | xargs kill
#!/bin/sh
ps aux | grep spring | grep -v 'grep' | awk '{print $2}' | xargs kill
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment