Index: trunk/MagicSoft/Mars/datacenter/scripts/fillmcdb
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/fillmcdb	(revision 9541)
+++ trunk/MagicSoft/Mars/datacenter/scripts/fillmcdb	(revision 9543)
@@ -34,4 +34,5 @@
 
 # number of runs to be inserted
+#numruns=300
 numruns=2700
 # number of events per run
@@ -41,7 +42,8 @@
 #  14 = proton
 #   6 = muon
-particlekey=1
+#particlekey=1
 particlekey=14
 
+obslevel=3700
 
 #
@@ -70,5 +72,5 @@
 
 
-echo "Inserting "$numruns" runs with "$numevts" events each and particle number "$particlekey"."
+echo "Inserting "$numruns" runs with "$numevts" events each and particle number "$particlekey" and observation level "$obslevel" m."
 echo "Next runs in DB from run number "${runs[0]}" to run number "${runs[1]}"."
 if [ "$1" == "-n" ]
@@ -80,5 +82,5 @@
 for i in `seq ${runs[0]} ${runs[1]}` 
 do 
-   query="INSERT MCRunData SET fNumEvents=$numevts, fParticleTypeKEY=$particlekey, fMCRunNumber=$i"
+   query="INSERT MCRunData SET fNumEvents=$numevts, fParticleTypeKEY=$particlekey, fObsLevel=$obslevel, fMCRunNumber=$i"
    echo $query
    sendquery "$query"
Index: trunk/MagicSoft/Mars/datacenter/scripts/sourcefile
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/sourcefile	(revision 9541)
+++ trunk/MagicSoft/Mars/datacenter/scripts/sourcefile	(revision 9543)
@@ -44,4 +44,8 @@
 fi
 
+# possible solution for $0 problem: 
+# ${BASH_SOURCE[0]} 
+# but has to be checked and tested more carefully
+# should solve at least problem with login-shell and with source
 source `dirname $0`/setup.$AUTOMATIONSETUP
 
@@ -59,5 +63,5 @@
          if ! [ "$processlog" = "" ]
          then
-            echo `date +%F\ %T`" "`whoami`"@"$HOSTNAME" "`basename $0`"["$$"] could not make dir "$@ >> $processlog
+            echo `date +%F\ %T`" "`whoami`"@"$HOSTNAME" "`basename $0`"["$$"] ERROR could not make dir "$@ >> $processlog
          else
             echo "could not make dir "$@
