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

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