Changeset 18685
- Timestamp:
- 12/18/16 20:50:56 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Transfer/CheckTransfer.sh
r18582 r18685 168 168 dl00=( `if [ -d $localrawpath ]; then ls $localrawpath/${date2}_[0-9][0-9][0-9][.]* | wc -l; du -s -b --apparent-size $localrawpath; else echo '-1 -1 -1'; fi` ) 169 169 archive=( `if [ -d $localrawpath3 ]; then ls $localrawpath3/${date2}_[0-9][0-9][0-9][.]* 2>/dev/null | wc -l; du -L -s -b --apparent-size $localrawpath3; else echo '-1 -1 -1'; fi` ) 170 fails=( `if [ -d $localfailpath ]; then ls $localfailpath/${date2}_[0-9][0-9][0-9][.]* | wc -l; du -L -s -b --apparent-size $localfailpath; else echo '-1 -1 -1'; fi` )170 fails=( `if [ -d $localfailpath ]; then ls $localfailpath/${date2}_[0-9][0-9][0-9][.]* 2>/dev/null | wc -l; du -L -s -b --apparent-size $localfailpath; else echo '-1 -1 -1'; fi` ) 171 171 wue=( `ssh operator@coma.astro.uni-wuerzburg.de "if [ -d $wuerawpath ]; then ls $wuerawpath/${date2}_[0-9][0-9][0-9][.]* | wc -l; du -s -b --apparent-size $wuerawpath; else echo '-1 -1 -1'; fi"` ) 172 172 #phido=( `ssh -i /home_nfs/isdc/fact_opr/.ssh/id_rsa.fact_opr.phido 129.217.160.201 "if [ -d $phidorawpath ]; then ls $phidorawpath/* | wc -l; du -s -b --apparent-size $phidorawpath; else echo '-1 -1 -1'; fi"` ) … … 476 476 if ! [ $numruns -eq ${newdaq[0]} ] 477 477 then 478 printprocesslog "WARN number of runs on newdaq ("${newdaq[0]}") not equal to number of runs ("$numruns") "479 echo "WARN number of runs on newdaq ("${newdaq[0]}") not equal to number of runs ("$numruns") " >> $logfile 2>&1478 printprocesslog "WARN number of runs on newdaq ("${newdaq[0]}") not equal to number of runs ("$numruns") for "$date" [DB]" 479 echo "WARN number of runs on newdaq ("${newdaq[0]}") not equal to number of runs ("$numruns") for "$date" [DB]" >> $logfile 2>&1 480 480 numpb=`echo " $numpb + 1 " | bc -l ` 481 481 result3="1" … … 487 487 if ! [ $numruns -eq $numrsynced ] 488 488 then 489 printprocesslog "WARN number of rsynced runs ("$numrsynced") not equal to number of runs ("$numruns") "490 echo "WARN number of rsynced runs ("$numrsynced") not equal to number of runs ("$numruns") " >> $logfile 2>&1489 printprocesslog "WARN number of rsynced runs ("$numrsynced") not equal to number of runs ("$numruns") for "$date" [DB]" 490 echo "WARN number of rsynced runs ("$numrsynced") not equal to number of runs ("$numruns") for "$date" [DB]" >> $logfile 2>&1 491 491 numpb=`echo " $numpb + 1 " | bc -l ` 492 492 result3=$result3"1" … … 498 498 if ! [ $numruns -eq $numisdc ] 499 499 then 500 printprocesslog "WARN number of ingested files in archive ("$numisdc") not equal to number of runs ("$numruns") "501 echo "WARN number of ingested files in archive ("$numisdc") not equal to number of runs ("$numruns") " >> $logfile 2>&1500 printprocesslog "WARN number of ingested files in archive ("$numisdc") not equal to number of runs ("$numruns") for "$date" [DB]" 501 echo "WARN number of ingested files in archive ("$numisdc") not equal to number of runs ("$numruns") for "$date" [DB]" >> $logfile 2>&1 502 502 numpb=`echo " $numpb + 1 " | bc -l ` 503 503 result3=$result3"1" … … 509 509 if ! [ $numruns -eq $numwue ] 510 510 then 511 printprocesslog "WARN number of backuped in Wue ("$numrsynced") not equal to number of runs ("$numruns") "512 echo "WARN number of backuped in Wue ("$numrsynced") not equal to number of runs ("$numruns") " >> $logfile 2>&1511 printprocesslog "WARN number of backuped in Wue ("$numrsynced") not equal to number of runs ("$numruns") for "$date" [DB]" 512 echo "WARN number of backuped in Wue ("$numrsynced") not equal to number of runs ("$numruns") for "$date" [DB]" >> $logfile 2>&1 513 513 numpb=`echo " $numpb + 1 " | bc -l ` 514 514 result3=$result3"1" … … 958 958 then 959 959 echo "" 960 echo "INFO send email with "$logfile2" to shift@fact-project.org "961 printprocesslog "INFO send email with "$logfile2" to shift@fact-project.org "960 echo "INFO send email with "$logfile2" to shift@fact-project.org " 961 printprocesslog "INFO send email with "$logfile2" to shift@fact-project.org " 962 962 cat $logfile2 | mail -s "testmail for info on deleting data" shift@fact-project.org 963 963 fi
Note:
See TracChangeset
for help on using the changeset viewer.