#!/bin/sh

# $Id: results,v 1.3 1997/06/15 04:12:16 lm Exp $

OS=`../scripts/os`
RESULTS=results/$OS
BASE=../$RESULTS/`uname -n`
OUT=$BASE
EXT=0

if [ ! -d ../$RESULTS ]
then	mkdir -p ../$RESULTS
fi
while [ -f $OUT ]
do      EXT=`expr $EXT + 1`
	OUT=$BASE.$EXT
done

echo Results going to $OUT
cd ../bin/$OS && ../../scripts/lmbench `../../scripts/config` 2>../$OUT

if [ X$MAIL = Xyes ]
then	echo Mailing results
	mail lmbench@slovax.engr.sgi.com < ../$OUT
fi
exit 0
