- Timestamp:
- 03/21/12 13:50:08 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Processing/CheckRawData.sh
r13057 r13158 51 51 dates=( `date +%Y/%m/%d --date="-12hour"` `date +%Y/%m/%d --date="-36hour"` `date +%Y/%m/%d --date="-60hour"` ) 52 52 #dates=( `find /loc_data/zipraw/ -mindepth 3 -type d | sort | sed -e 's/\/loc_data\/zipraw\///g'` ) #all available dates in /loc_data/zipraw 53 #dates=( `find /loc_data/aux/ -mindepth 3 -type d | sort | sed -e 's/\/loc_data\/aux\///g'` ) #all available dates in /loc_data/zipraw 53 54 54 55 # do check for rawfiles of these dates 55 56 for date in ${dates[@]} 56 57 do 58 date2=`echo $date | sed -e 's/\///g'` 59 query="SELECT fNight FROM AuxFilesAvailISDCStatus WHERE fNight="$date2 60 night=`sendquery` 61 if [ "$night" == "" ] 62 then 63 printprocesslog "INFO insert "$date2" to AuxFilesAvailISDCStatus" 64 query="INSERT AuxFilesAvailISDCStatus SET fNight="$date2", fPriority="$date2 65 sendquery >/dev/null 2>&1 66 fi 67 night= 68 query="SELECT fNight FROM AuxDataInsertStatus WHERE fNight="$date2 69 night=`sendquery` 70 if [ "$night" == "" ] 71 then 72 printprocesslog "INFO insert "$date2" to AuxDataInsertStatus" 73 query="INSERT AuxDataInsertStatus SET fNight="$date2", fPriority="$date2 74 sendquery >/dev/null 2>&1 75 fi 57 76 ziprawdir=/loc_data/zipraw/$date 58 77 # check if data are available from that night … … 321 340 if [ "$result3" == "" ] 322 341 then 323 query="INSERT RawFileAvailISDCStatus SET fNight="$runnumber", fPriority="$runnumber", fRunID="$filenumberfromname324 sendquery >/dev/null325 query="INSERT RawFileRsyncedISDCStatus SET fNight="$runnumber", fPriority="$runnumber", fRunID="$filenumberfromname326 sendquery >/dev/null327 query="INSERT RawFileAvailWueStatus SET fNight="$runnumber", fPriority="$runnumber", fRunID="$filenumberfromname328 sendquery >/dev/null329 342 query="INSERT" 330 343 querymid=" fNight="$runnumber", fRunID="$filenumberfromname", "
Note:
See TracChangeset
for help on using the changeset viewer.