minix/commands/swifi/run_t1a
2008-10-02 13:45:46 +00:00

23 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