Changeset 17089 for trunk/DataCheck/Processing
- Timestamp:
- 09/06/13 15:46:14 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Processing/FillAuxCtrDev.sh
r15154 r17089 1 1 #!/bin/bash 2 2 3 # option 4 doupdate="yes" # update all entries (needed when new fields have been added) 5 doupdate="no" # fill only entries which are not yet existing (default) 3 # option whether to fill all row or only those where information is missing 4 # $doupdate might be given as environment variable 5 if [ "$doupdate" = "" ] 6 then 7 doupdate="yes" # update all entries (needed when new fields have been added) 8 doupdate="no" # fill only entries which are not yet existing (default) 9 fi 6 10 7 11 source `dirname $0`/../Sourcefile.sh … … 21 25 fi 22 26 27 # get dates 28 if [ "$certaindate" != "" ] 29 then 30 getdates $certaindate 31 else 32 # get all night 33 #getdates "all" 34 # get last 6 nights 35 getdates 6 36 fi 23 37 24 # get last 3, 6 or 9 nights25 dates=( `date +%Y/%m/%d --date="-12hour"` `date +%Y/%m/%d --date="-36hour"` `date +%Y/%m/%d --date="-60hour"` \26 # `date +%Y/%m/%d --date="-84hour"` `date +%Y/%m/%d --date="-108hour"` `date +%Y/%m/%d --date="-132hour"` \27 # `date +%Y/%m/%d --date="-156hour"` `date +%Y/%m/%d --date="-180hour"` `date +%Y/%m/%d --date="-204hour"` \28 )29 dates=( `find -L $ziprawdata -mindepth 3 -type d | sort | sed "s/\${ziprawdata_for_sed}//g" | sed -e 's/^\///'` ) #all available dates in /loc_data/zipraw30 38 printprocesslog "INFO processing the following night(s): "${dates[@]} 31 39 echo `date`": processing the following night(s): "${dates[@]} >> $logfile 2>&1 … … 133 141 if [ -e $trackingfile ] && [ $tracknumerrors -eq 0 ] 134 142 then 135 ctrldevs=( `root -q -b -l fact/ ctrldev.C\("\"$trackingfile\""\,$tstart\,$tstop\) | grep "result" | grep -E -o '[0-9]+[.]?[0-9]*'` )143 ctrldevs=( `root -q -b -l fact/processing/ctrldev.C\("\"$trackingfile\""\,$tstart\,$tstop\) | grep "result" | grep -E -o '[0-9]+[.]?[0-9]*'` ) 136 144 if [ "${ctrldevs[0]}" == "" ] 137 145 then … … 154 162 query=$query" WHERE fNight="$runnumber" AND fRunID="$filenum 155 163 156 echo $query157 164 # send query to DB 158 165 sendquery >/dev/null
Note:
See TracChangeset
for help on using the changeset viewer.