Changeset 17093 for trunk/DataCheck/Processing
- Timestamp:
- 09/06/13 15:51:40 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Processing/FillRatescans.sh
r15329 r17093 9 9 logfile=$runlogpath"/FillRatescan-"$datetime".log" 10 10 date >> $logfile 11 12 # this script doesn't need variable $doupdate 13 # filling is done by macro and update is always done 11 14 12 15 # get last 3, 6 or 9 nights … … 22 25 echo `date`": processing the following night(s): "${dates[@]} >> $logfile 2>&1 23 26 24 echo ${dates[@]}27 #echo ${dates[@]} 25 28 26 29 cd $mars … … 31 34 auxdir=$auxdata/$date 32 35 runnumber=`echo $date | sed -e 's/\///g'` 33 echo $auxdir34 36 35 37 # check if aux files are available from that night … … 43 45 44 46 ratescanfile=$auxdir/$runnumber.RATE_SCAN_DATA.fits 45 ls $ratescanfile 47 printprocesslog "INFO processing "$ratescanfile 48 echo "INFO processing "$ratescanfile >> $logfile 2>&1 46 49 if ! [ -e $ratescanfile ] 47 50 then … … 56 59 fi 57 60 58 echo "run fillratescan.C for night "$runnumber 59 root -q -b -l fact/fillratescan.C\("\"$ratescanfile"\"\,kFALSE\) 61 printprocesslog "INFO run fillratescan.C for night "$runnumber 62 echo "run fillratescan.C for night "$runnumber >> $logfile 2>&1 63 check1=`root -q -b -l fact/processing/fillratescan.C\("\"$ratescanfile"\"\,kFALSE\) | tee $logfile | intgrep` 64 case $check1 in 65 1) printprocesslog "INFO fillratescan.C was successfully for night "$runumber" (check1=$check1)." 66 ;; 67 0) printprocesslog "WARN connection to DB failed (check1=$check1)." 68 ;; 69 *) printprocesslog "ERROR fillratescan.C failed for night "$runumber" (check1=$check1)." 70 ;; 71 esac 72 60 73 61 74 done
Note:
See TracChangeset
for help on using the changeset viewer.