Changeset 19030
- Timestamp:
- 06/27/18 00:42:38 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Tools/get_data.sh
r19029 r19030 220 220 fi 221 221 #echo "$queryint" 222 mysql --defaults-file=$sqlpw -u root$dbname -s -e "$queryint" >> $fileint223 #mysql --defaults-file=$sqlpw -u root$dbname -e "$queryint"222 mysql --defaults-file=$sqlpw -u factread --host=$host $dbname -s -e "$queryint" >> $fileint 223 #mysql --defaults-file=$sqlpw -u factread --host=$host $dbname -e "$queryint" 224 224 225 225 … … 237 237 fi 238 238 #echo "$queryext" 239 mysql --defaults-file=$sqlpw -u root$dbname -s -e "$queryext" >> $fileext240 #mysql --defaults-file=$sqlpw -u root$dbname -e "$queryext"239 mysql --defaults-file=$sqlpw -u factread --host=$host $dbname -s -e "$queryext" >> $fileext 240 #mysql --defaults-file=$sqlpw -u factread --host=$host $dbname -e "$queryext" 241 241 } 242 242 … … 244 244 # db 245 245 sqlpw=/home/$USER/.mysql.pw # file with mysql credentials 246 host=lp-fact 247 #host=10.0.100.21 248 #host=localhost 246 249 dbname=factdata # name of database 247 250 # defaults for zd and threshold … … 270 273 # choose analysis 271 274 #table="AnalysisResultsAllQLA" # N/A 272 #table="AnalysisResultsRunLP" # QLA273 table="AnalysisResultsRunISDC" # ISDC275 table="AnalysisResultsRunLP" # QLA 276 #table="AnalysisResultsRunISDC" # ISDC 274 277 # time range 275 278 nightmin=20111115 … … 282 285 # example (adapt to your needs) 283 286 284 # crab 285 source=5 286 name="Crab_nightly" 287 bin=-1 288 get_results 289 name="Crab_20min" 290 bin=20 291 get_results 292 name="Crab_period" 293 bin=0 294 get_results 295 name="Crab_season" 296 bin=-365 297 nightmin=20110716 298 nightmax=20180716 287 # 501 MAGIC 288 source=2 289 name="Mrk501_2014JulAug" 290 bin=-1 291 nightmin=20140714 292 nightmax=20140805 299 293 get_results 300 294
Note:
See TracChangeset
for help on using the changeset viewer.