Changeset 17570
- Timestamp:
- 03/01/14 23:41:53 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Transfer/CheckTransfer.sh
r17079 r17570 6 6 source `dirname $0`/../Sourcefile.sh 7 7 printprocesslog "INFO starting $0" 8 9 numchecktransfer=`/usr/sbin/lsof $0 | grep -o -c $0` 10 if [ $numchecktransfer -gt 1 ] 11 then 12 printprocesslog "INFO "$0" already running -> exit. " 13 echo "INFO "$0" already running -> exit. " 14 finish 15 fi 8 16 9 17 logfile2=$logpath"/transfer/CheckTransfer.log" … … 330 338 echo "SUMMARY for "$date 331 339 echo "-----------------------" 332 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) " 340 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) " 333 341 echo " "$date" is not yet transfered completely. For more details, please check the logfile "$logfile 334 342 echo "" >> $logfile 2>&1 335 343 echo "SUMMARY for "$date >> $logfile 2>&1 336 344 echo "-----------------------" >> $logfile 2>&1 337 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) " >> $logfile 2>&1345 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 338 346 echo " "$date" is not yet transfered completely. For more details, please check the logfile "$logfile >> $logfile 2>&1 339 347 echo "" >> $logfile2 2>&1 340 348 echo "SUMMARY for "$date >> $logfile2 2>&1 341 349 echo "-----------------------" >> $logfile2 2>&1 342 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) " >> $logfile2 2>&1350 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 343 351 echo " "$date" is not yet transfered completely. For more details, please check the logfile "$logfile >> $logfile2 2>&1 344 352 #echo "number of files does not yet agree in all sites ("$result1") -> do no further checking. " … … 537 545 do 538 546 rawfile=$date2"_"`printf %03d $run`".fits" 539 rawfile2=$rawfile".gz" 547 #rawfile2=$rawfile".gz" 548 rawfile2=$rawfile".*z" 540 549 541 550 # get file sizes for run 542 sizenewdaq=( `ssh fact@161.72.93.131 "ls -l ${lprawpath}/${rawfile} 2>/dev/null | awk '{ print \\\$5 }'"` ) 551 #sizenewdaq=( `ssh fact@161.72.93.131 "ls -l ${lprawpath}/${rawfile} 2>/dev/null | awk '{ print \\\$5 }'"` ) 552 sizenewdaq=( `ssh fact@161.72.93.131 "ls -lH ${lprawpath}/${rawfile} 2>/dev/null | awk '{ print \\\$5 }'"` ) 543 553 sizedaq=( `ssh fact@161.72.93.131 "ls -l $lprawpath2/$rawfile 2>/dev/null | awk '{ print \\\$5 }'"` ) 544 554 sizezip=( `ssh fact@161.72.93.131 "ls -l $lpziprawpath/$rawfile2 2>/dev/null | awk '{ print \\\$5 }'"` ) … … 621 631 do 622 632 rawfile=$date2"_"`printf %03d $drsrun`".drs.fits" 623 rawfile2=$rawfile".gz" 633 #rawfile2=$rawfile".gz" 634 rawfile2=$rawfile".*z" 624 635 # get file sizes for run 625 sizenewdaq=( `ssh fact@161.72.93.131 "ls -l ${lprawpath}/${rawfile} 2>/dev/null | awk '{ print \\\$5 }'"` ) 636 #sizenewdaq=( `ssh fact@161.72.93.131 "ls -l ${lprawpath}/${rawfile} 2>/dev/null | awk '{ print \\\$5 }'"` ) 637 sizenewdaq=( `ssh fact@161.72.93.131 "ls -lH ${lprawpath}/${rawfile} 2>/dev/null | awk '{ print \\\$5 }'"` ) 626 638 sizedaq=( `ssh fact@161.72.93.131 "ls -l $lprawpath2/$rawfile 2>/dev/null | awk '{ print \\\$5 }'"` ) 627 639 sizezip=( `ssh fact@161.72.93.131 "ls -l $lpziprawpath/$rawfile2 2>/dev/null | awk '{ print \\\$5 }'"` ) … … 632 644 if ! [ ${archive[1]} -eq -1 ] 633 645 then 634 sizearchive=( `ls -l $localrawpath3/$rawfile2 2>/dev/null | awk '{ print \$5 }'` )646 sizearchive=( `ls -lH $localrawpath3/$rawfile2 2>/dev/null | awk '{ print \$5 }'` ) 635 647 fi 636 648 if ! [ ${fails[1]} -eq -1 ] 637 649 then 638 sizefails=( `ls -l $localfailpath/$rawfile2 2>/dev/null | awk '{ print \$5 }'` )650 sizefails=( `ls -lH $localfailpath/$rawfile2 2>/dev/null | awk '{ print \$5 }'` ) 639 651 fi 640 652 if ! [ ${wue[1]} -eq -1 ] … … 875 887 if [ "$sendemail" = "yes" ] 876 888 then 889 echo "" 877 890 echo "INFO send email with "$logfile2"to shift@fact-project.org " 878 891 printprocesslog "INFO send email with "$logfile2"to shift@fact-project.org "
Note:
See TracChangeset
for help on using the changeset viewer.