Ignore:
Timestamp:
02/21/17 21:21:56 (8 years ago)
Author:
Daniela Dorner
Message:
fixed bug and added check
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/Transfer/CheckTransfer.sh

    r18739 r18775  
    127127      fi
    128128   fi
    129 
     129   
    130130   # some counters
    131131   numdiff=0
     
    613613         #rawfile2=$rawfile".gz"
    614614         rawfile2=$rawfile".*z"
    615          printprocesslog "INFO checking "$rawfile
     615         printprocesslog "INFO checking "$rawfile2
    616616         
    617617         # get file sizes for run
    618618         #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 }'"` )
    621621         sizezip=( `ssh fact@161.72.93.131 "ls -l $lpziprawpath/$rawfile2 2>/dev/null | awk '{ print \\\$5 }'"` )
    622622         if ! [ ${dl00[1]} -eq -1 ]
     
    635635         then
    636636            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
    637643         fi
    638644         #if ! [ ${phido[1]} -eq -1 ]
     
    645651         if ! [ "$sizenewdaq" = "$sizedaq" ]
    646652         then
    647             printprocesslog "WARN "$rawfile" newdaq("$sizenewdaq") daq("$sizedaq")"
    648             echo "  "$rawfile" newdaq("$sizenewdaq") daq("$sizedaq")" >> $logfile 2>&1
     653            printprocesslog "WARN "$rawfile2" newdaq("$sizenewdaq") daq("$sizedaq")"
     654            echo "  "$rawfile2" newdaq("$sizenewdaq") daq("$sizedaq")" >> $logfile 2>&1
    649655            daqdiffcounter=`echo " $daqdiffcounter + 1 " | bc -l `
    650656         else
     
    726732         #   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 }'"` )
    727733         #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
    728739         
    729740         # check file sizes for run
Note: See TracChangeset for help on using the changeset viewer.