#! /bin/csh -f set TMPFILE = ~/bubble99$$ @ FIRROT = $argv[1] @ ENDROT = $argv[2] set ROT = $FIRROT while ( $ROT <= $ENDROT) echo "Will run make_magsynop.pl for Carrington Rotation $ROT " set DDIR = /synoptic/carrot/m/$ROT if ( -e $TMPFILE ) then rm $TMPFILE endif echo $ROT > $TMPFILE if ( ($ROT < 1909 ) || ( $ROT > 3000) ) then echo $ROT out of range - min=1909 max=3000 exit endif set RETURN = `rsh sonar ~kehcheng/work/synop/carrot < $TMPFILE` set FIRST = $RETURN[5] set LAST = $RETURN[15] echo ---- echo make_magsynop.pl $ROT $FIRST $LAST echo " Note - storing existing files in old_NOCAL" if (! -e /synoptic/carrot/M/$ROT/old_NOCAL) then mkdir /synoptic/carrot/M/$ROT/old_NOCAL endif mv /synoptic/carrot/M/$ROT/* /synoptic/carrot/M/$ROT/old_NOCAL make_magsynop.pl $ROT $FIRST $LAST @ ROT = $ROT + 1 end echo loop complete rm $TMPFILE