Changeset 17889
- Timestamp:
- 05/26/14 16:09:30 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Transfer/CheckTransfer.sh
r17618 r17889 92 92 do 93 93 logfile=$logpath"/transfer/CheckTransfer_"`echo $date | sed -e 's/\//-/g'`".log" 94 95 echo "" 96 echo "" >> $logfile2 2>&1 97 echo "Processing "$date" ..." 98 echo "Processing "$date" ..." >> $logfile2 2>&1 99 100 # avoid that already checked days are checked again 94 101 if grep "EVERYTHING" $logfile >/dev/null 95 102 then 96 echo $date" has been checked already and is fine." 97 echo $date" has been checked already and is fine." >> $logfile2 2>&1 103 echo " "$date" has been checked already and is fine. Please check logfile "$logfile 104 echo " "$date" has been checked already and is fine. Please check logfile "$logfile >> $logfile2 2>&1 105 sendemail="yes" 98 106 continue 99 107 fi 100 #echo ""101 #echo ""102 #echo ""103 #echo "" > $logfile 2>&1104 #echo "" >> $logfile 2>&1105 #echo "" >> $logfile 2>&1106 echo "Processing "$date" ..."107 echo "Processing "$date" ..." > $logfile 2>&1108 echo "Processing "$date" ..." >> $logfile2 2>&1109 108 if [ "$certaindate" != "" ] 110 109 then … … 342 341 #fi 343 342 343 short2= 344 344 if [ "$result1" != "0-0000" ] && [ "$short" != "no" ] 345 345 then 346 short ="yes"347 fi 348 349 if [ "$short " = "yes" ]346 short2="yes" 347 fi 348 349 if [ "$short2" = "yes" ] 350 350 then 351 351 printprocesslog "number of files does not yet agree in all sites ("$result1") -> do no further checking." 352 echo "" >> $logfile 2>&1 352 353 echo "number of files does not yet agree in all sites ("$result1") -> do no further checking." >> $logfile 2>&1 353 echo "" 354 echo "" >> $logfile 2>&1 355 # print to console 354 356 echo "SUMMARY for "$date 355 357 echo "-----------------------" 356 358 echo " number of files does not yet agree in all sites: "${newdaq[0]}" (newdaq) "${daq[0]}" (daq) "${zip[0]}" (data) "${dl00[0]}" (dl) "${wue[0]}" (wue) "${archive[0]}" (arch) "${fails[0]}" (fails) "${qla[@]}" (qla) "$numdatruns" (datruns) " 357 echo " "$date" is not yet transfered completely. For more details, please check the logfile "$logfile358 echo ""359 echo " "$date" is not yet transfered completely. Please check the logfile "$logfile 360 # print to single logfile 359 361 echo "SUMMARY for "$date >> $logfile 2>&1 360 362 echo "-----------------------" >> $logfile 2>&1 361 363 echo " number of files does not yet agree in all sites: "${newdaq[0]}" (newdaq) "${daq[0]}" (daq) "${zip[0]}" (data) "${dl00[0]}" (dl) "${wue[0]}" (wue) "${archive[0]}" (arch) "${fails[0]}" (fails) "${qla[@]}" (qla) "$numdatruns" (datruns) " >> $logfile 2>&1 362 echo " "$date" is not yet transfered completely. For more details, please check the logfile "$logfile >> $logfile 2>&1363 echo "" >> $logfile 2>&1364 echo " "$date" is not yet transfered completely. Please check the logfile "$logfile >> $logfile 2>&1 365 # print to global logfile 364 366 echo "SUMMARY for "$date >> $logfile2 2>&1 365 367 echo "-----------------------" >> $logfile2 2>&1 366 368 echo " number of files does not yet agree in all sites: "${newdaq[0]}" (newdaq) "${daq[0]}" (daq) "${zip[0]}" (data) "${dl00[0]}" (dl) "${wue[0]}" (wue) "${archive[0]}" (arch) "${fails[0]}" (fails) "${qla[@]}" (qla) "$numdatruns" (datruns) " >> $logfile2 2>&1 367 echo " "$date" is not yet transfered completely. For more details, please check the logfile "$logfile >> $logfile2 2>&1 368 echo "" >> $logfile2 2>&1 369 #echo "number of files does not yet agree in all sites ("$result1") -> do no further checking. " 370 #echo "disk: " 371 #echo " newdaq "${newdaq[@]} 372 #echo " daq "${daq[@]} 373 #echo " data "${zip[@]} 374 #echo " dl00 "${dl00[@]} 375 #echo " wue "${wue[@]} 376 #echo " arch "${archive[@]} 377 #echo " fail "${fails[@]} 378 ##echo " phido "${phido[@]} 379 #echo "db: " 380 #echo " runinfo "$numruns 381 #echo " rsynced "$numrsynced 382 #echo " isdc "$numisdc 383 #echo " wue "$numwue 384 ##echo " phido "$numphido 369 echo " "$date" is not yet transfered completely. Please check the logfile "$logfile >> $logfile2 2>&1 385 370 continue 386 371 fi 387 372 388 #result=$result"-"389 373 # check du for raw files 390 374 # la palma … … 863 847 then 864 848 echo " EVERYTHING is ok. "$date" can be deleted. " 849 echo "" >> $logfile 2>&1 865 850 echo " EVERYTHING is ok. "$date" can be deleted. " >> $logfile 2>&1 866 851 echo " EVERYTHING is ok. "$date" can be deleted. " >> $logfile2 2>&1 867 852 echo " Details in the logfile "$logfile 868 echo " Details in the logfile "$logfile>> $logfile 2>&1853 echo "" >> $logfile 2>&1 869 854 echo " Details in the logfile "$logfile >> $logfile2 2>&1 870 855 sendemail="yes" … … 876 861 echo " "${fails[0]}" file(s) corrupt (fails folder), but files are transfered correctly. " >> $logfile2 2>&1 877 862 echo " TRANSFER is ok. "$date" can be deleted. " 863 echo "" >> $logfile 2>&1 878 864 echo " TRANSFER is ok. "$date" can be deleted. " >> $logfile 2>&1 879 865 echo " TRANSFER is ok. "$date" can be deleted. " >> $logfile2 2>&1 880 866 echo " Details in the logfile "$logfile 881 echo " Details in the logfile "$logfile>> $logfile 2>&1867 echo "" >> $logfile 2>&1 882 868 echo " Details in the logfile "$logfile >> $logfile2 2>&1 883 869 sendemail="yes" 884 870 else 885 871 echo " "$date" is not yet transfered completely. Please check the logfile "$logfile 872 echo "" >> $logfile 2>&1 886 873 echo " "$date" is not yet transfered completely. Please check the logfile "$logfile >> $logfile 2>&1 887 874 echo " "$date" is not yet transfered completely. Please check the logfile "$logfile >> $logfile2 2>&1
Note:
See TracChangeset
for help on using the changeset viewer.