Changeset 13158 for trunk/DataCheck


Ignore:
Timestamp:
03/21/12 13:50:08 (13 years ago)
Author:
Daniela Dorner
Message:
added insert to nightly status tables, removed insert for status tables for runs (done with mysql trigger now)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/Processing/CheckRawData.sh

    r13057 r13158  
    5151dates=( `date +%Y/%m/%d --date="-12hour"` `date +%Y/%m/%d --date="-36hour"` `date +%Y/%m/%d --date="-60hour"` )
    5252#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
    5354
    5455# do check for rawfiles of these dates
    5556for date in ${dates[@]}
    5657do
     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
    5776   ziprawdir=/loc_data/zipraw/$date
    5877   # check if data are available from that night
     
    321340      if [ "$result3" == "" ]
    322341      then
    323          query="INSERT RawFileAvailISDCStatus SET fNight="$runnumber", fPriority="$runnumber", fRunID="$filenumberfromname
    324          sendquery >/dev/null
    325          query="INSERT RawFileRsyncedISDCStatus SET fNight="$runnumber", fPriority="$runnumber", fRunID="$filenumberfromname
    326          sendquery >/dev/null
    327          query="INSERT RawFileAvailWueStatus SET fNight="$runnumber", fPriority="$runnumber", fRunID="$filenumberfromname
    328          sendquery >/dev/null
    329342         query="INSERT"
    330343         querymid=" fNight="$runnumber", fRunID="$filenumberfromname", "
Note: See TracChangeset for help on using the changeset viewer.