#/bin/csh
while (1)
	set date = `date`
	set date = $date[2]$date[3]
	echo starting zog at `date`
	cp zog zog.r
	./zog.r -epD -S2 >>& zog.log.$date
	if (-e core) then
		mv core zog.core
		mv zog.r zog.crashed
	endif
	sleep 240
end
