checkMACCSir.sh

InfoInfo
Search:    

# This script is run at 19:35 by the maccs user crontab.
# It emails the newest MACCS Iridium data line plot files to the listed users.
# If there is no new data it sends an email to report the missing data.
# Written By Erik Johnson 8/23/07
# Last Modified 8/29/07

YEAR=`date -u +%Y`
YY=`date -u +%y`
DAY=`date -u +%j`
PDAY=`echo $DAY - 1 | bc`
#PDAY=233

# Insert the necessary leading zeros for PDAY
if [ $PDAY -lt 10 ]; then

elif [ $PDAY -lt 100 ]; then

fi

CDL2dir='/Volumes/physics_data/Ftp/MACCS_DATA/LinePlots/PNG/CD/'${YEAR}'ir/'
NAL2dir='/Volumes/physics_data/Ftp/MACCS_DATA/LinePlots/PNG/NA/'${YEAR}'ir/'
CDL2Pdir='/Volumes/physics_data/Ftp/MACCS_DATA/LinePlots/PNG/CD/'${YEAR}'ir/Problem_Data/'
NAL2Pdir='/Volumes/physics_data/Ftp/MACCS_DATA/LinePlots/PNG/NA/'${YEAR}'ir/Problem_Data/'
SOURCEdir='/Volumes/physics_data/Code/MACCS_Code/'

cd $CDL2dir
if [ -f "${CDL2dir}cd${YY}${PDAY}.png" ]; then

elif [ -f "${CDL2Pdir}cd${YY}${PDAY}.png" ]; then

else

fi

cd $NAL2dir
if [ -f "${NAL2dir}na${YY}${PDAY}.png" ]; then

elif [ -f "${NAL2Pdir}na${YY}${PDAY}.png" ]; then

else

fi

This is a Wiki Spot wiki. Wiki Spot is a non-profit organization that helps communities collaborate via wikis.