summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2015-06-28 14:12:56 +0200
committerPatrick Simianer <p@simianer.de>2015-06-28 14:12:56 +0200
commit26daeac21567bcdaee4ed62e297526e67171533d (patch)
treec1a860ac0e2167f20a152fba9bcb84b887e75f80 /util
parent91d68ae2079399acfb381dc14af323d1c75b6dca (diff)
run_server
Diffstat (limited to 'util')
-rwxr-xr-xutil/run_server8
1 files changed, 6 insertions, 2 deletions
diff --git a/util/run_server b/util/run_server
index ca86554..7d45583 100755
--- a/util/run_server
+++ b/util/run_server
@@ -6,6 +6,10 @@ export GEM_PATH=/fast_scratch/simianer/lfpe/lib/ruby/:$GEM_PATH
UTIL=/fast_scratch/simianer/lfpe/lfpe/util
SESSION=$1
DIR=/fast_scratch/simianer/lfpe/sessions/$SESSION
-#clear;$UTIL/kill;$UTIL/kill;$UTIL/kill;
-rm $DIR/work/lockfile; cp $DIR/data.json.original $DIR/data.json; $UTIL/../server.rb $DIR/conf.rb
+
+rm $DIR/work/lockfile
+rm -r $DIR/work/
+mkdir -p $DIR/work
+cp $DIR/data.json.original $DIR/data.json
+$UTIL/../server.rb $DIR/conf.rb &>$DIR/work/session.out