Changeset 18775 for trunk/DataCheck/Transfer
- Timestamp:
- 02/21/17 21:21:56 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Transfer/CheckTransfer.sh
r18739 r18775 127 127 fi 128 128 fi 129 129 130 130 # some counters 131 131 numdiff=0 … … 613 613 #rawfile2=$rawfile".gz" 614 614 rawfile2=$rawfile".*z" 615 printprocesslog "INFO checking "$rawfile 615 printprocesslog "INFO checking "$rawfile2 616 616 617 617 # get file sizes for run 618 618 #sizenewdaq=( `ssh fact@161.72.93.131 "ls -l ${lprawpath}/${rawfile} 2>/dev/null | awk '{ print \\\$5 }'"` ) 619 sizenewdaq=( `ssh fact@161.72.93.131 "ls -lH ${lprawpath}/${rawfile } 2>/dev/null | awk '{ print \\\$5 }'"` )620 sizedaq=( `ssh fact@161.72.93.131 "ls -l $lprawpath2/$rawfile 2>/dev/null | awk '{ print \\\$5 }'"` )619 sizenewdaq=( `ssh fact@161.72.93.131 "ls -lH ${lprawpath}/${rawfile2} 2>/dev/null | awk '{ print \\\$5 }'"` ) 620 sizedaq=( `ssh fact@161.72.93.131 "ls -l $lprawpath2/$rawfile2 2>/dev/null | awk '{ print \\\$5 }'"` ) 621 621 sizezip=( `ssh fact@161.72.93.131 "ls -l $lpziprawpath/$rawfile2 2>/dev/null | awk '{ print \\\$5 }'"` ) 622 622 if ! [ ${dl00[1]} -eq -1 ] … … 635 635 then 636 636 sizewue=( `ssh operator@coma.astro.uni-wuerzburg.de "ls -l $wuerawpath/$rawfile2 2>/dev/null | awk '{ print \\\$5 }'"` ) 637 fi 638 639 if [ "$sizenewdaq" = "" ] || [ "$sizedaq" = "" ] || [ "$sizezip" = "" ] || [ "$sizedl00" = "" ] || [ "$sizewue" = "" ] || [ [ "$sizefails" = "" ] && [ "$sizearchive" = "" ] ] 640 then 641 printprocesslog "WARN one or more of the sizes empty: "$sizenewdaq"(newdaq) "$sizedaq"(daq) "$sizezip"(data) "$sizedl00"(dl) "$sizewue"(wue) "$sizefails"(fails) "$sizearchive"(arch) " 642 continue 637 643 fi 638 644 #if ! [ ${phido[1]} -eq -1 ] … … 645 651 if ! [ "$sizenewdaq" = "$sizedaq" ] 646 652 then 647 printprocesslog "WARN "$rawfile " newdaq("$sizenewdaq") daq("$sizedaq")"648 echo " "$rawfile " newdaq("$sizenewdaq") daq("$sizedaq")" >> $logfile 2>&1653 printprocesslog "WARN "$rawfile2" newdaq("$sizenewdaq") daq("$sizedaq")" 654 echo " "$rawfile2" newdaq("$sizenewdaq") daq("$sizedaq")" >> $logfile 2>&1 649 655 daqdiffcounter=`echo " $daqdiffcounter + 1 " | bc -l ` 650 656 else … … 726 732 # sizephido=( `ssh -i /home_nfs/isdc/fact_opr/.ssh/id_rsa.fact_opr.phido 129.217.160.201 "ls -l $phidorawpath/$rawfile2 2>/dev/null | awk '{ print \\\$5 }'"` ) 727 733 #fi 734 if [ "$sizenewdaq" = "" ] || [ "$sizedaq" = "" ] || [ "$sizezip" = "" ] || [ "$sizedl00" = "" ] || [ "$sizewue" = "" ] || [ [ "$sizefails" = "" ] && [ "$sizearchive" = "" ] ] 735 then 736 printprocesslog "WARN one or more of the sizes empty: "$sizenewdaq"(newdaq) "$sizedaq"(daq) "$sizezip"(data) "$sizedl00"(dl) "$sizewue"(wue) "$sizefails"(fails) "$sizearchive"(arch) " 737 continue 738 fi 728 739 729 740 # check file sizes for run
Note:
See TracChangeset
for help on using the changeset viewer.