c=1

stopfile=/data/seestats/stop_st


# dumping this here seems to be a better idea 
# /data/seestats/systemcheck.sh

while [ 1 ]
do
	echo "---------------"
	echo "Short term $c times"   


	# do not want to burden the system - more on the conservative side 
	sleep 50 

	# combining script sets together 
	# a way to make sure that these scripts do not affect system performance
	# in case they do, then their effect is local (in time). 
	echo "Snapshot before"
	/data/seestats/scripts_set4.sh 
	/data/seestats/scripts_set1.sh
	/data/seestats/scripts_set2.sh
	echo "Snapshot after"
	/data/seestats/scripts_set4.sh 


	if [ -f "$stopfile" ]
	then
		echo "$stopfile found."
		break
	fi

	(( c++ ))
done


