Changeset 9217 for trunk/MagicSoft/Mars/datacenter
- Timestamp:
- 01/09/09 22:34:21 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/datacenter/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/fillcamera
r9147 r9217 42 42 checklock >> $scriptlog 2>&1 43 43 44 getdbsetup 45 44 46 #mccampath=$mcpath/camera 45 47 mccampath=/magic/montecarlo/camera 46 48 #workaround 47 49 cameradirs=`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`50 50 echo "camera dirs: "${cameradirs[@]} >> $scriptlog 2>&1 51 51 echo "" >> $scriptlog 2>&1 … … 115 115 116 116 117 # user="test"118 # db="TestMonteCarlo"119 # pw="Ics+eaTD"120 user="operator"121 db="MyMagicMonteCarlo"122 pw="Ics+eMM!"123 117 cquery=" select fRunNumber from MCRunProcessStatus where fFileName=\"$calfile\" " 124 118 pquery=" select fRunNumber from MCRunProcessStatus where fFileName=\"$pedfile\" " 125 119 126 crun=`mysql -ss -u $us er--password=$pw --host=$ho $db -e " $cquery "`127 prun=`mysql -ss -u $us er--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 "` 128 122 cnum=`printf %08d $crun` 129 123 pnum=`printf %08d $prun` … … 150 144 echo "P run already there, do mysql update" >> $scriptlog 2>&1 151 145 # continue 152 mysql -ss -u $us er--password=$pw --host=$ho $db -e " $pupdate "146 mysql -ss -u $us --password=$pw --host=$ho $db -e " $pupdate " 153 147 else 154 148 echo "linking P run for epoch $epo" >> $scriptlog 2>&1 155 149 ln -sv $pedfile $newpedfile >> $scriptlog 2>&1 156 mysql -ss -u $us er--password=$pw --host=$ho $db -e " $pupdate "150 mysql -ss -u $us --password=$pw --host=$ho $db -e " $pupdate " 157 151 fi 158 152 … … 161 155 echo "C run already there, do mysql update" >> $scriptlog 2>&1 162 156 # continue 163 mysql -ss -u $us er--password=$pw --host=$ho $db -e " $cupdate "157 mysql -ss -u $us --password=$pw --host=$ho $db -e " $cupdate " 164 158 else 165 159 echo "linking C run for epoch $epo" >> $scriptlog 2>&1 166 160 ln -sv $calfile $newcalfile >> $scriptlog 2>&1 167 mysql -ss -u $us er--password=$pw --host=$ho $db -e " $cupdate "161 mysql -ss -u $us --password=$pw --host=$ho $db -e " $cupdate " 168 162 fi 169 163 -
trunk/MagicSoft/Mars/datacenter/scripts/mcsequences
r9147 r9217 47 47 printprocesslog "INFO building two sequences per mcdirectory and epoch, one for training and one for testing" 48 48 49 #user="test" 50 #db="TestMonteCarlo" 51 #pw="Ics+eaTD" 52 user="operator" 53 db="MyMagicMonteCarlo" 54 pw="Ics+eMM!" 49 getdbsetup 55 50 56 51 dirs=`find $mcrawpath -type d`
Note:
See TracChangeset
for help on using the changeset viewer.