#!/usr/bin/ksh # # call_wget_maccs_gmag.ksh - This script sets the arguments # to the script which downloads MACCS gmag data # # Creation Date: # # 21 April 2009 TimQuinn # # # ## Set the environment variables # if [[ -z $THMSOC ]] then THMSOC=/disks/socware/thmsoc_dp_current export THMSOC fi . ${THMSOC}/src/config/soc_it_to_me.config # ## Function Definitions # # ## Determine dates to check # thisYear=$(date -u '+%Y') thisMonth=$(date -u '+%m') if [[ $thisMonth = "01" ]] then lastYear=$(( $thisYear - 1 )) fi year=2012 #; for year in $thisYear $lastYear #; do #; for line in $(cat ${CONFIGDIR}/maccs_site_list.txt) #; do #; site=$(echo $line |awk -F_ '{print $2}') #;echo $site #;echo $year for site in RBY IGL CRV GJO PGG do echo $site wget_maccs_gmag.ksh $site $year # done done # ## Clean up # exit 0