#!/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 school=VLDR #month=05 # find ./${school}/${year} -type f -name ${school}\* -mtime ${FIND_TIME} > /home/thmsoc/clrussells_stuff/filelists/${school}_rmd_files for year in 2007 2008 2009 2011 do find ./${school}/${year} -type f -name ${school}\* > /home/thmsoc/clrussells_stuff/filelists/${school}_${year}_rmd_files done exit 0