#!/usr/bin/ksh # # This script writes lists of EPO rmd 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/gbo_uc_rmd_mirror.config cd $UCB_MIRROR_HOME FIND_TIME=-7 # for longer periods comment out the year month and change paths below year=2012 month=05 while read school do schooluc=$(echo $school | awk -F_ '{print $1}') find ./${year}/${month} -type f -name ${schooluc}\* -mtime ${FIND_TIME} > /home/thmsoc/lphilpotts_stuff/filelists/${schooluc}_rmd_files done < ${CONFIGDIR}/ucalgary_rmd_site_list.txt exit 0