#!/bin/sh

#/u/usystem/software/u++-4.7/bin/u++ -msupersparc -fhandle-exceptions NBFile.cc 
while [ T = T ] ; do
	( echo 1; sleep 1; echo 2; sleep 1; echo 3; sleep 1; echo 4; sleep 1; ) | ./a.out
	sleep 5			# wait for core to be dumped
    if [ -f core ] ; then break; fi
	echo "successful execution"
done
