Lionel Sambuc 433d6423c3 New sources layout
Change-Id: Ic716f336b7071063997cf5b4dae6d50e0b4631e9
2014-07-31 16:00:30 +02:00

24 lines
379 B
Bash
Executable File

#!/bin/sh
set -x
if [ $# -ne 2 ]; then usage; fi
type="$1"
run="$2"
count=1000
# Rotate syslog
LOGFILE=/var/log/messages
mv $LOGFILE $LOGFILE.prev
(cd /var/log && : > messages)
kill -1 `ps ax | grep syslogd | grep -v grep |
sed 's,^[ ]*,,;s,[ ].*,,'`
./run_t1 $count $type `expr $run \* 1000` 2>&1 |
tee results/1.$type.$run.out
cp $LOGFILE results/1.$type.$run.log