summaryrefslogtreecommitdiff
path: root/util/kill_all
diff options
context:
space:
mode:
Diffstat (limited to 'util/kill_all')
-rwxr-xr-xutil/kill_all4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/kill_all b/util/kill_all
new file mode 100755
index 0000000..e82f822
--- /dev/null
+++ b/util/kill_all
@@ -0,0 +1,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
+