#!/bin/sh
#
# Execute script for a module program of the EuroBen Benchmark.
#
LOGDIR=Log.`hostname`
LOGFILE=${LOGDIR}/$1.log
PROG=$1/x.$1

if test ! -d ${LOGDIR}
then
  mkdir ${LOGDIR}
fi

exec 1>> ${LOGFILE} 2>&1
echo ; echo ; echo start $1 at `date` id = $$ ;
if  test -f ${PROG}
then
  (cd $1; time ./x.$1)
  echo ; echo end $1 at `date` 'id =' $$
else 
  echo "$1 not found"
fi
