Ignore:
Timestamp:
06/27/18 00:42:38 (6 years ago)
Author:
Daniela Dorner
Message:
added host
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/Tools/get_data.sh

    r19029 r19030  
    220220   fi
    221221   #echo "$queryint"
    222    mysql --defaults-file=$sqlpw -u root $dbname -s -e "$queryint" >> $fileint
    223    #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"
    224224   
    225225   
     
    237237   fi
    238238   #echo "$queryext"
    239    mysql --defaults-file=$sqlpw -u root $dbname -s -e "$queryext" >> $fileext
    240    #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"
    241241}
    242242
     
    244244# db
    245245sqlpw=/home/$USER/.mysql.pw # file with mysql credentials
     246host=lp-fact
     247#host=10.0.100.21
     248#host=localhost
    246249dbname=factdata # name of database
    247250# defaults for zd and threshold
     
    270273# choose analysis
    271274#table="AnalysisResultsAllQLA" # N/A
    272 #table="AnalysisResultsRunLP" # QLA
    273 table="AnalysisResultsRunISDC"  # ISDC
     275table="AnalysisResultsRunLP" # QLA
     276#table="AnalysisResultsRunISDC"  # ISDC
    274277# time range
    275278nightmin=20111115
     
    282285# example (adapt to your needs)
    283286
    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
     288source=2
     289name="Mrk501_2014JulAug"
     290bin=-1
     291nightmin=20140714
     292nightmax=20140805
    299293get_results
    300294
Note: See TracChangeset for help on using the changeset viewer.