Changeset 13580 for trunk/DataCheck/Transfer/CheckTransfer.sh
- Timestamp:
- 05/07/12 10:42:36 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Transfer/CheckTransfer.sh
r13312 r13580 6 6 source `dirname $0`/../Sourcefile.sh 7 7 printprocesslog "INFO starting $0" 8 9 ssh fact@161.72.93.131 "df -h /*da*" 10 11 df -h /scratch 8 12 9 13 # get last 10 nights (skip current night) … … 15 19 ) 16 20 21 dates=( `ssh fact@161.72.93.131 "find /loc_data/zipraw -mindepth 3 -type d | sort | sed -e 's/\/loc_data\/zipraw\///g' "` ) 22 17 23 numdaysok=0 18 numdaysoklimit=1 24 numdaysoklimit=3 25 sumdata=0 26 checklimit=2000 19 27 for date in ${dates[@]} 20 28 do … … 30 38 31 39 # check always only $numdaysoklimit days 32 if [ $numdaysok -ge $numdaysoklimit ] 33 then 34 echo "INFO more than "$numdaysoklimit" ok -> stop. " 40 # and require at least $checklimit GB that have been checked 41 # remark: bc: expr1 < expr2: the result is 1 if expr1 is strictly less than expr2 42 if [ $numdaysok -ge $numdaysoklimit ] && [ $(echo " $sumdata > $checklimit " | bc -l) -eq 1 ] 43 then 44 echo "INFO more than "$numdaysoklimit" ok and more than "$checklimit" GB checked. " 35 45 continue 36 46 fi … … 301 311 fi 302 312 313 #numdiff=0 # add for debugging so that single file sizes are not checked 303 314 echo "numdiff: "$numdiff 304 315 echo "INFO numok: "$numok … … 539 550 echo " ldaw-ldaw-ldaw-ldaw" 540 551 echo " "$result 552 sumdatanew=`echo " ( ${data[1]} + ${zip[1]} ) / 1024 / 1024 / 1024 " | bc -l ` 553 sumdata=`echo " $sumdata + $sumdatanew " | bc -l ` 554 echo "checked alread "$sumdata" GB."$sumdatanew" "${data[1]}" "${zip[1]} 541 555 #if [ $numpb -eq 0 ] 542 556 if [ $numpb -lt 4 ]
Note:
See TracChangeset
for help on using the changeset viewer.