#!/usr/bin/ksh # # This script writes lists of alaska cdf files. It is intended to be used when for some # reason the automatic daily write of file names to the database has failed. # ## 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 . $THMSOC/src/config/gima_netcdf2all.config cd $L2MAGDIR FIND_TIME=-14 # for longer periods comment out the year month and change paths below year=2011 month=11 while read line do school=$(echo $line | awk -F_ '{print $1}') find ./${school}/${year} -type f -name thg* -mtime ${FIND_TIME} > /home/thmsoc/lphilpotts_stuff/filelists/${school}_cdf_files done < ${CONFIGDIR}/gima_network.txt exit 0