#!/usr/bin/ksh
#
# maccs_ascii2all_cleanup.ksh 
#
# This script cleans up old log files and scratch directories
# associated with production of MACCS L2 CDF production
#
#			Author: Tim Quinn
# 		Created: April 2009
#

#
## 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
  . /home/thmsoc/astraea2_test/soc_it_to_me.config
#. $THMSOC/src/config/maccs_ascii2all.config
  . /home/thmsoc/astraea2_test/maccs_ascii2all_test.config


#
##
## Begin Work
##
#
	find $MACCSLOGDIR -name \* -mtime +1 -exec /bin/rm -rf {} \;
	find ${L2MAGDIR}/garage -name \* -mtime +1 -exec /bin/rm -rf {} \;

#
## Cleanup
#
	exit 0
