#!/bin/csh -f # if argument ==0 then do the daily accumulation # if argument ==1 then finish off the previous month # monacc1pps -- accumulates present month of 1pps hourly medians # runs in Linux # test version set bdir=/users/fghigo/bin set pubdir=/home/ftp/pub/fghigo/timer set currmo=$pubdir/`$bdir/zdatelin -ny 0`.t00new set prevmo=$pubdir/`$bdir/zdatelin -ny 1`.t00new if($1 == 0) then echo "$bdir/rfclock_rh7 -p /home/gbtlogs/ -c SiteTime-OnePps-OnePpsDeltas -o $currmo -m 0 -w" $bdir/rfclock_rh7 -p /home/gbtlogs/ -c SiteTime-OnePps-OnePpsDeltas -o $currmo -m 0 -w exit 1 endif if ($1 == 1) then echo "$bdir/rfclock_rh7 -p /home/gbtlogs/ -c SiteTime-OnePps-OnePpsDeltas -o $prevmo -m 1 -w" $bdir/rfclock_rh7 -p /home/gbtlogs/ -c SiteTime-OnePps-OnePpsDeltas -o $prevmo -m 1 -w exit 1 endif