summaryrefslogtreecommitdiff
path: root/util/kill
blob: f1924b2206e51ad696e84c4dbf6b32619e8aaaf0 (plain)
1
2
3
4
#!/bin/bash

for i in {1..6}; do ps ax | grep -P "(server.rb|atools|net_fa|sa.extract|dtrain)" | grep -v vim | grep -v -P "^\s\+$" | cut -d " " -f $i | xargs kill -9 &>/dev/null; done