Ignore:
Timestamp:
05/09/07 17:05:15 (17 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/scripts/copyscript

    r8469 r8482  
    2020#   Author(s): Daniela Dorner  08/2004 <mailto:dorner@astro.uni-wuerzburg.de>
    2121#
    22 #   Copyright: MAGIC Software Development, 2000-2006
     22#   Copyright: MAGIC Software Development, 2000-2007
    2323#
    2424#
     
    9999
    100100#find all dates in transfer-directory
    101 dates=`find $transdir/*/ -type d | grep -o --regexp=20[0-9][0-9]_[0-1][0-9]_[0-3][0-9]` >> $scriptlog 2>&1
     101dates=`find $transdir/*/ -type d | grep -o --regexp=20[0-9][0-9]_[0-1][0-9]_[0-3][0-9] | sort | uniq` >> $scriptlog 2>&1
    102102if ! [ "$dates" = "" ]
    103103then
     
    220220do
    221221   printprocesslog "INFO process "$opticalfile
    222 #   echo $opticalfile
    223222   file=`basename $opticalfile`
    224223   year=`echo $file | cut -c 0-4`
     
    226225   makedir $opticallogpath >> $scriptlog 2>&1
    227226   opticallogfile=$opticallogpath/filloptical-$file.log
    228 #   echo "logfile: "$opticallogfile
    229227 
    230228   checkfilloptical=`root -q -b $macrospath/filloptical.C+\("\"$opticalfile\""\,kFALSE\) | tee $opticallogfile | intgrep`
    231 #   checkfilloptical=`root -q -b $macrospath/filloptical.C+\("\"$opticalfile\""\) | tee $opticallogfile | intgrep`
    232229           
    233230   case $checkfilloptical in
     
    266263
    267264#getting new catalogfiles
    268 catfiles=`find $subsystempath/cc/ -name $magfav -newer $catalog | sort`
     265for (( i=0 ; i < 31 ; i++ ))
     266do
     267   date=`date --date "-${i}day" +%Y/%m/%d`
     268   path=$subsystempath/cc/$date
     269   catfiles=$catfiles" "`find $path -name $magfav -newer $catalog`
     270done
    269271
    270272for catfile in ${catfiles[@]}
Note: See TracChangeset for help on using the changeset viewer.