Changeset 17589 for trunk/DataCheck


Ignore:
Timestamp:
03/02/14 00:27:17 (11 years ago)
Author:
Daniela Dorner
Message:
added check if rsync worked
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/DataCheck/PlotQuality.sh

    r17522 r17589  
    33source `dirname $0`/../Sourcefile.sh
    44printprocesslog "INFO starting $0 $1"
    5 
    6 # get current hour
    7 hour=`date +%k`
    85
    96# get dates
     
    2926for date in ${dates[@]}
    3027do
     28   #echo $date
    3129   outpath=$anapath/quality/$date
    3230   logfile=$anapath/quality/$date/quality.log
     
    3634   day=`echo $date | cut -d/ -f3 | sed -e 's/^0//g'`
    3735   printprocesslog "DEBUG root -q -b fact/plots/quality.C\("$year"\,"$month"\,"$day"\,\""$outpath"\"\) | tee $logfile | intgrep"
    38    check1=`root -q -b fact/plots/quality.C\($year\,$month\,$day\,\""$outpath"\"\) | tee $logfile | intgrep`
     36   check1=`root -q -b fact/plots/quality.C\($year\,$month\,$day\,\""$outpath"\"\) 2>&1 | tee $logfile | intgrep`
    3937   
    4038   case $check1 in
     
    4644
    4745   printprocesslog "INFO rsync output to gate."
    48    rsync -av $anapath/quality/ gate:/home/factwww/quality
     46   if ! rsync -av $anapath/quality/ gate:/home/factwww/quality >> $logfile 2>&1
     47   then
     48      printprocesslog "ERROR rsync to gate failed."
     49      echo `date +%F\ %T`" ERROR rsync to gate failed."
     50   fi
    4951done
    5052
Note: See TracChangeset for help on using the changeset viewer.