#!/bin/sh echo "Run on `hostname`, which is a `uname -a` machine" | tee -a test.out echo `date` >> test.out for i in *.cc do j=`basename $i .cc` gmake G4TARGET=$j echo Test output for $j... >> test.out $G4WORKDIR/bin/$G4SYSTEM/$j >> test.out 2>&1; done