summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2016-07-20 10:55:28 +0200
committerPatrick Simianer <p@simianer.de>2016-07-20 10:55:28 +0200
commit47b04c4d2e72a473d1b7595c1a6655bcd351f65e (patch)
treed4c8709f6f7b2ec0a1f917f85af06d4750995610 /util
parent893f1b87ff267a6afd886951c91a64573f4d9c9f (diff)
parentfac00976168c6b3c94d01d76babede147e4a0710 (diff)
Merge branch 'master' of github.com:pks/lfpe
Diffstat (limited to 'util')
-rwxr-xr-xutil/kill_all (renamed from util/kill)0
-rwxr-xr-xutil/kill_session5
-rwxr-xr-xutil/run_all2
3 files changed, 6 insertions, 1 deletions
diff --git a/util/kill b/util/kill_all
index e82f822..e82f822 100755
--- a/util/kill
+++ b/util/kill_all
diff --git a/util/kill_session b/util/kill_session
new file mode 100755
index 0000000..1f57c81
--- /dev/null
+++ b/util/kill_session
@@ -0,0 +1,5 @@
+#!/usr/bin/zsh -x
+
+lsof /srv/postedit/sessions/$1/work/session.out | cut -d " " -f 2- | /srv/postedit/scripts/strips | cut -d " " -f 1 | grep -v PID | xargs kill
+lsof /srv/postedit/sessions/$1/work/session.out
+
diff --git a/util/run_all b/util/run_all
index a873e63..e82ced9 100755
--- a/util/run_all
+++ b/util/run_all
@@ -4,6 +4,6 @@
for i in `cat ../sessions/sessions | cut -f 1`; do
echo $i
./util/run_session $i &
- sleep 60
+ sleep 10
done