Changeset 15322


Ignore:
Timestamp:
04/13/13 17:13:11 (12 years ago)
Author:
Daniela Dorner
Message:
fixed bug and improved logging
File:
1 edited

Legend:

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

    r15320 r15322  
    1010printprocesslog "INFO starting $0 $1"
    1111
     12# getting db info for query
    1213getdbsetup
    1314
    1415function get_table()
    1516{
    16    echo "writing "$file" ..."
     17   printprocesslog "INFO writing "$file
    1718   query="SELECT Datediff(Max(fRunStop), '1858-11-17') as MJD, "
    1819   query=$query" Date_format(Max(fRunStop), '%Y/%m/%d') as DATE, "
     
    2829   query=$query" WHERE fSourceKEY="$sourcekey
    2930   query=$query" AND fRunTypeKEY=1 "
     31   query=$query" AND fNight BETWEEN "$start" AND "$stop
    3032   query=$query" GROUP BY fNight "
    3133   query=$query" ORDER BY fNight "
    3234   #echo $query
    33    echo ""
     35   #echo ""
    3436   printprocesslog "DEBUG sendquery QUERY: "$query
     37   # sendquery can't be used as it writes everything into a variable
    3538   mysql -s -u $us --password=$pw --host=$ho $db -e " $query " > $file
    3639}
Note: See TracChangeset for help on using the changeset viewer.