Changeset 8482 for trunk/MagicSoft/Mars/datacenter/scripts/copyscript
- Timestamp:
- 05/09/07 17:05:15 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/copyscript
r8469 r8482 20 20 # Author(s): Daniela Dorner 08/2004 <mailto:dorner@astro.uni-wuerzburg.de> 21 21 # 22 # Copyright: MAGIC Software Development, 2000-200 622 # Copyright: MAGIC Software Development, 2000-2007 23 23 # 24 24 # … … 99 99 100 100 #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>&1101 dates=`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 102 102 if ! [ "$dates" = "" ] 103 103 then … … 220 220 do 221 221 printprocesslog "INFO process "$opticalfile 222 # echo $opticalfile223 222 file=`basename $opticalfile` 224 223 year=`echo $file | cut -c 0-4` … … 226 225 makedir $opticallogpath >> $scriptlog 2>&1 227 226 opticallogfile=$opticallogpath/filloptical-$file.log 228 # echo "logfile: "$opticallogfile229 227 230 228 checkfilloptical=`root -q -b $macrospath/filloptical.C+\("\"$opticalfile\""\,kFALSE\) | tee $opticallogfile | intgrep` 231 # checkfilloptical=`root -q -b $macrospath/filloptical.C+\("\"$opticalfile\""\) | tee $opticallogfile | intgrep`232 229 233 230 case $checkfilloptical in … … 266 263 267 264 #getting new catalogfiles 268 catfiles=`find $subsystempath/cc/ -name $magfav -newer $catalog | sort` 265 for (( i=0 ; i < 31 ; i++ )) 266 do 267 date=`date --date "-${i}day" +%Y/%m/%d` 268 path=$subsystempath/cc/$date 269 catfiles=$catfiles" "`find $path -name $magfav -newer $catalog` 270 done 269 271 270 272 for catfile in ${catfiles[@]}
Note:
See TracChangeset
for help on using the changeset viewer.