From 14f7bbab028d781cd2057a348862f911324338fd Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Tue, 23 Jun 2015 16:03:23 +0200 Subject: overhaul --- util/kill | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 util/kill (limited to 'util/kill') diff --git a/util/kill b/util/kill new file mode 100755 index 0000000..f1924b2 --- /dev/null +++ b/util/kill @@ -0,0 +1,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 + -- cgit v1.2.3