# /bin/csh

cd /data/fits
set countOld = 0
while (1)
	set count = `ls -1 *fits| wc -l`
	if ( $count > $countOld ) then
		xset b 100 400 1000
		echo ""
		sleep 1	
		xset b 100 800 1000
		echo ""
		sleep 1
		xset b 100 400 1000
		echo ""
		sleep 1
		xset b 100 800 1000
		echo " NEW FILE"
		date	
		set countOld = $count
	endif
	sleep 10
	echo "$count .\n"
end
