Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 9216)
+++ trunk/MagicSoft/Mars/Changelog	(revision 9217)
@@ -27,4 +27,7 @@
        parameter had unreasonable values (negative) which were filled
        into the mcdb, now->0
+
+   * datacenter/scripts/fillcamera, mcsequences:
+     - implemented call of getdbsetup
 
 
Index: trunk/MagicSoft/Mars/datacenter/scripts/fillcamera
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/fillcamera	(revision 9216)
+++ trunk/MagicSoft/Mars/datacenter/scripts/fillcamera	(revision 9217)
@@ -42,10 +42,10 @@
 checklock  >> $scriptlog 2>&1
 
+getdbsetup
+
 #mccampath=$mcpath/camera
 mccampath=/magic/montecarlo/camera
 #workaround
 cameradirs=`find /magic/montecarlo/camera -maxdepth 4 -mindepth 2 -type d ! -name Gamma ! -name Muon ! -name Proton ! -name Spot_?.?`
-#cameradirs=`find /magic/montecarlo/camera -maxdepth 3 -mindepth 2 -type d ! -name Gamma ! -name Muon ! -name Proton`
-#cameradirs=`find $mccampath -maxdepth 1 -mindepth 1 -type d`
 echo "camera dirs: "${cameradirs[@]}  >> $scriptlog 2>&1
 echo "" >> $scriptlog 2>&1
@@ -115,15 +115,9 @@
       
       
-      #   user="test"
-      #   db="TestMonteCarlo"
-      #   pw="Ics+eaTD"
-      user="operator"
-      db="MyMagicMonteCarlo"
-      pw="Ics+eMM!"
       cquery=" select fRunNumber from MCRunProcessStatus where fFileName=\"$calfile\" "
       pquery=" select fRunNumber from MCRunProcessStatus where fFileName=\"$pedfile\" "
       
-      crun=`mysql -ss -u $user --password=$pw --host=$ho $db -e " $cquery "`
-      prun=`mysql -ss -u $user --password=$pw --host=$ho $db -e " $pquery "`
+      crun=`mysql -ss -u $us --password=$pw --host=$ho $db -e " $cquery "`
+      prun=`mysql -ss -u $us --password=$pw --host=$ho $db -e " $pquery "`
       cnum=`printf %08d $crun`
       pnum=`printf %08d $prun`
@@ -150,9 +144,9 @@
             echo "P run already there, do mysql update" >> $scriptlog 2>&1
    #         continue
-            mysql -ss -u $user --password=$pw --host=$ho $db -e " $pupdate "
+            mysql -ss -u $us --password=$pw --host=$ho $db -e " $pupdate "
          else 
             echo "linking P run for epoch $epo" >> $scriptlog 2>&1
             ln -sv $pedfile $newpedfile >> $scriptlog 2>&1
-            mysql -ss -u $user --password=$pw --host=$ho $db -e " $pupdate "
+            mysql -ss -u $us --password=$pw --host=$ho $db -e " $pupdate "
          fi
          
@@ -161,9 +155,9 @@
             echo "C run already there, do mysql update" >> $scriptlog 2>&1
    #         continue
-            mysql -ss -u $user --password=$pw --host=$ho $db -e " $cupdate "
+            mysql -ss -u $us --password=$pw --host=$ho $db -e " $cupdate "
          else 
             echo "linking C run for epoch $epo" >> $scriptlog 2>&1
             ln -sv $calfile $newcalfile >> $scriptlog 2>&1
-            mysql -ss -u $user --password=$pw --host=$ho $db -e " $cupdate "
+            mysql -ss -u $us --password=$pw --host=$ho $db -e " $cupdate "
          fi
    
Index: trunk/MagicSoft/Mars/datacenter/scripts/mcsequences
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/mcsequences	(revision 9216)
+++ trunk/MagicSoft/Mars/datacenter/scripts/mcsequences	(revision 9217)
@@ -47,10 +47,5 @@
 printprocesslog "INFO building two sequences per mcdirectory and epoch, one for training and one for testing"
 
-#user="test"
-#db="TestMonteCarlo"
-#pw="Ics+eaTD"
-user="operator"
-db="MyMagicMonteCarlo"
-pw="Ics+eMM!"
+getdbsetup
 
 dirs=`find $mcrawpath -type d`
