Changeset 9217


Ignore:
Timestamp:
01/09/09 22:34:21 (16 years ago)
Author:
hoehne
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r9216 r9217  
    2727       parameter had unreasonable values (negative) which were filled
    2828       into the mcdb, now->0
     29
     30   * datacenter/scripts/fillcamera, mcsequences:
     31     - implemented call of getdbsetup
    2932
    3033
  • trunk/MagicSoft/Mars/datacenter/scripts/fillcamera

    r9147 r9217  
    4242checklock  >> $scriptlog 2>&1
    4343
     44getdbsetup
     45
    4446#mccampath=$mcpath/camera
    4547mccampath=/magic/montecarlo/camera
    4648#workaround
    4749cameradirs=`find /magic/montecarlo/camera -maxdepth 4 -mindepth 2 -type d ! -name Gamma ! -name Muon ! -name Proton ! -name Spot_?.?`
    48 #cameradirs=`find /magic/montecarlo/camera -maxdepth 3 -mindepth 2 -type d ! -name Gamma ! -name Muon ! -name Proton`
    49 #cameradirs=`find $mccampath -maxdepth 1 -mindepth 1 -type d`
    5050echo "camera dirs: "${cameradirs[@]}  >> $scriptlog 2>&1
    5151echo "" >> $scriptlog 2>&1
     
    115115     
    116116     
    117       #   user="test"
    118       #   db="TestMonteCarlo"
    119       #   pw="Ics+eaTD"
    120       user="operator"
    121       db="MyMagicMonteCarlo"
    122       pw="Ics+eMM!"
    123117      cquery=" select fRunNumber from MCRunProcessStatus where fFileName=\"$calfile\" "
    124118      pquery=" select fRunNumber from MCRunProcessStatus where fFileName=\"$pedfile\" "
    125119     
    126       crun=`mysql -ss -u $user --password=$pw --host=$ho $db -e " $cquery "`
    127       prun=`mysql -ss -u $user --password=$pw --host=$ho $db -e " $pquery "`
     120      crun=`mysql -ss -u $us --password=$pw --host=$ho $db -e " $cquery "`
     121      prun=`mysql -ss -u $us --password=$pw --host=$ho $db -e " $pquery "`
    128122      cnum=`printf %08d $crun`
    129123      pnum=`printf %08d $prun`
     
    150144            echo "P run already there, do mysql update" >> $scriptlog 2>&1
    151145   #         continue
    152             mysql -ss -u $user --password=$pw --host=$ho $db -e " $pupdate "
     146            mysql -ss -u $us --password=$pw --host=$ho $db -e " $pupdate "
    153147         else
    154148            echo "linking P run for epoch $epo" >> $scriptlog 2>&1
    155149            ln -sv $pedfile $newpedfile >> $scriptlog 2>&1
    156             mysql -ss -u $user --password=$pw --host=$ho $db -e " $pupdate "
     150            mysql -ss -u $us --password=$pw --host=$ho $db -e " $pupdate "
    157151         fi
    158152         
     
    161155            echo "C run already there, do mysql update" >> $scriptlog 2>&1
    162156   #         continue
    163             mysql -ss -u $user --password=$pw --host=$ho $db -e " $cupdate "
     157            mysql -ss -u $us --password=$pw --host=$ho $db -e " $cupdate "
    164158         else
    165159            echo "linking C run for epoch $epo" >> $scriptlog 2>&1
    166160            ln -sv $calfile $newcalfile >> $scriptlog 2>&1
    167             mysql -ss -u $user --password=$pw --host=$ho $db -e " $cupdate "
     161            mysql -ss -u $us --password=$pw --host=$ho $db -e " $cupdate "
    168162         fi
    169163   
  • trunk/MagicSoft/Mars/datacenter/scripts/mcsequences

    r9147 r9217  
    4747printprocesslog "INFO building two sequences per mcdirectory and epoch, one for training and one for testing"
    4848
    49 #user="test"
    50 #db="TestMonteCarlo"
    51 #pw="Ics+eaTD"
    52 user="operator"
    53 db="MyMagicMonteCarlo"
    54 pw="Ics+eMM!"
     49getdbsetup
    5550
    5651dirs=`find $mcrawpath -type d`
Note: See TracChangeset for help on using the changeset viewer.