Changeset 18582 for trunk/DataCheck/Transfer
- Timestamp:
- 09/10/16 18:31:04 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Transfer/CheckTransfer.sh
r18434 r18582 158 158 # on newdaq files with more than 3 digits as run number are excluded 159 159 newdaq=( `ssh fact@161.72.93.131 "if [ -d $lprawpath ]; then ls $lprawpath/${date2}_[0-9][0-9][0-9][.]* | wc -l; du -s -b --apparent-size $lprawpath; else echo '-1 -1 -1'; fi"` ) 160 daq=( `ssh fact@161.72.93.131 "if [ -d $lprawpath2 ]; then ls $lprawpath2/ * | wc -l; du -s -b --apparent-size $lprawpath2; else echo '-1 -1 -1'; fi"` )160 daq=( `ssh fact@161.72.93.131 "if [ -d $lprawpath2 ]; then ls $lprawpath2/${date2}_[0-9][0-9][0-9][.]* | wc -l; du -s -b --apparent-size $lprawpath2; else echo '-1 -1 -1'; fi"` ) 161 161 if [ ${newdaq[0]} -eq -1 ] && [ ${daq[0]} -eq -1 ] 162 162 then … … 165 165 continue 166 166 fi 167 zip=( `ssh fact@161.72.93.131 "if [ -d $lpziprawpath ]; then ls $lpziprawpath/ * 2>/dev/null | wc -l; du -s -b --apparent-size $lpziprawpath; else echo '-1 -1 -1'; fi"` )168 dl00=( `if [ -d $localrawpath ]; then ls $localrawpath/ * | wc -l; du -s -b --apparent-size $localrawpath; else echo '-1 -1 -1'; fi` )169 archive=( `if [ -d $localrawpath3 ]; then ls $localrawpath3/ * 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/ * | wc -l; du -L -s -b --apparent-size $localfailpath; else echo '-1 -1 -1'; fi` )171 wue=( `ssh operator@coma.astro.uni-wuerzburg.de "if [ -d $wuerawpath ]; then ls $wuerawpath/ * | wc -l; du -s -b --apparent-size $wuerawpath; else echo '-1 -1 -1'; fi"` )167 zip=( `ssh fact@161.72.93.131 "if [ -d $lpziprawpath ]; then ls $lpziprawpath/${date2}_[0-9][0-9][0-9][.]* 2>/dev/null | wc -l; du -s -b --apparent-size $lpziprawpath; else echo '-1 -1 -1'; fi"` ) 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 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` ) 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"` ) 173 173 qla=( `ssh fact@161.72.93.131 "ls $qlapath/20*_C.root 2>/dev/null | wc -l"` ) … … 352 352 353 353 short2= 354 # num files 354 355 if [ "$result1" != "0-0000" ] && [ "$short" != "no" ] 355 356 then … … 527 528 # result3=$result3"0" 528 529 #fi 530 fi 531 532 # db 533 if [ "$result3" != "0000" ] && [ "$short" != "no" ] 534 then 535 short2="yes" 536 fi 537 538 if [ "$short2" = "yes" ] 539 then 540 printprocesslog "number of files does not yet agree in db ("$result3") -> do no further checking." 541 echo "" >> $logfile 2>&1 542 echo "number of files does not yet agree in all sites ("$result1") -> do no further checking." >> $logfile 2>&1 543 echo "" >> $logfile 2>&1 544 # print to console 545 echo "SUMMARY for "$date 546 echo "-----------------------" 547 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) " 548 echo " "$date" is not yet transfered completely. Please check the logfile "$logfile 549 # print to single logfile 550 echo "SUMMARY for "$date >> $logfile 2>&1 551 echo "-----------------------" >> $logfile 2>&1 552 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 553 echo " "$date" is not yet transfered completely. Please check the logfile "$logfile >> $logfile 2>&1 554 # print to global logfile 555 echo "SUMMARY for "$date >> $logfile2 2>&1 556 echo "-----------------------" >> $logfile2 2>&1 557 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 558 echo " "$date" is not yet transfered completely. Please check the logfile "$logfile >> $logfile2 2>&1 559 continue 529 560 fi 530 561
Note:
See TracChangeset
for help on using the changeset viewer.