Changeset 15322
- Timestamp:
- 04/13/13 17:13:11 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/DataCheck/InfoForMWL.sh
r15320 r15322 10 10 printprocesslog "INFO starting $0 $1" 11 11 12 # getting db info for query 12 13 getdbsetup 13 14 14 15 function get_table() 15 16 { 16 echo "writing "$file" ..."17 printprocesslog "INFO writing "$file 17 18 query="SELECT Datediff(Max(fRunStop), '1858-11-17') as MJD, " 18 19 query=$query" Date_format(Max(fRunStop), '%Y/%m/%d') as DATE, " … … 28 29 query=$query" WHERE fSourceKEY="$sourcekey 29 30 query=$query" AND fRunTypeKEY=1 " 31 query=$query" AND fNight BETWEEN "$start" AND "$stop 30 32 query=$query" GROUP BY fNight " 31 33 query=$query" ORDER BY fNight " 32 34 #echo $query 33 echo ""35 #echo "" 34 36 printprocesslog "DEBUG sendquery QUERY: "$query 37 # sendquery can't be used as it writes everything into a variable 35 38 mysql -s -u $us --password=$pw --host=$ho $db -e " $query " > $file 36 39 }
Note:
See TracChangeset
for help on using the changeset viewer.