#!/usr/bin/ksh # # This script writes lists of UAtha 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_atha_rmd_mirror.config cd $ATHA_MIRROR_HOME FIND_TIME=-7 # for longer periods comment out the year month and change paths below year=2012 month=05 for school in LARG LETH ROTH REDR do find ./${school}/${year}/${month} -type f -name ${school}\* -mtime ${FIND_TIME} > /home/thmsoc/lphilpotts_stuff/filelists/${school}_rmd_files done exit 0