#!/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 for year in 2007 2008 2009 2010 do for month in 01 02 03 04 05 06 07 08 09 10 11 12 do for school in VLDR do find ./${school}/${year}/${month} -type f -name ${school}\* -mtime ${FIND_TIME} > /home/thmsoc/clrussells_stuff/filelists/${school}_rmd_files done done done exit 0