Index: trunk/MagicSoft/Mars/datacenter/scripts/runcorsika
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/runcorsika	(revision 9585)
+++ trunk/MagicSoft/Mars/datacenter/scripts/runcorsika	(revision 9586)
@@ -201,4 +201,5 @@
 cd $corsikapath
 
+printprocesslog "INFO executing 'printinputcard | ./cc6501p-linux >| $logfile 2>&1' in directory $corsikapath "
 printinputcard | ./cc6501p-linux >| $logfile 2>&1
 
Index: trunk/MagicSoft/Mars/datacenter/scripts/setup.wue.fact.mc
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/setup.wue.fact.mc	(revision 9585)
+++ trunk/MagicSoft/Mars/datacenter/scripts/setup.wue.fact.mc	(revision 9586)
@@ -41,7 +41,7 @@
 
 # logging and setup
-logpath=/home/montecarlo/fact_db_test
-lockpath=/home/montecarlo/fact_db_test/locks
-setuppath=/home/montecarlo/fact_db_test/setup
+logpath=/magic/datacenter/fact/autologs
+lockpath=/magic/datacenter/fact/locks
+setuppath=/magic/datacenter/fact/setup
 
 ## paths of data
@@ -55,9 +55,6 @@
 #mcrawpath=$mcpath/rawfiles
 #mcsequpath=$mcpath/sequences
-#corsikapath=/home/operator/Corsika/Mmcs6500/
-#detectordir=/home/msmeyer/MC/MagicSoft/Simulation/Detector
-#reflectorversion="reflector 0.7"
-#cameraversion="camera 0.8"
-#export FLUPRO=$corsikapath'/fluka2008_3'
+corsikapath=/home/montecarlo/Simulation/Corsika/Mmcs6500
+export FLUPRO=$corsikapath'/fluka2008_3'
 
 
@@ -70,5 +67,5 @@
 # rcfiles
 # dependencies of steps
-steps=$mars/resources/steps_fact2.rc
+steps=$mars/resources/steps_fact.rc
 # file with db information
 sqlrc=$mars/sql.rc
@@ -100,24 +97,20 @@
 pnototalwe=(     42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 )
 
-pnoceres=(        7  7  7  7  7  7  7  7  7  7  7  7  7  7  7  7  7  7  7  7  7  7  7  7 )
-pnocprun=(        7  7  7  7  7  7  7  7  7  7  7  7  7  7  7  7  7  7  7  7  7  7  7  7 )
+pnocorsika=(     21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 )
+pnoceres=(       12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 )
+pnocprun=(       12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 )
 pnocallisto=(    32 32 32 32 32 20 20 18 18 12 12 12 12 12 12 12 12 12 12 18 18 20 20 32 )
 pnostar=(        10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 )
 
-pnocereswe=(      7  7  7  7  7  7  7  7  7  7  7  7  7  7  7  7  7  7  7  7  7  7  7  7 )
-pnocprunwe=(      7  7  7  7  7  7  7  7  7  7  7  7  7  7  7  7  7  7  7  7  7  7  7  7 )
+pnocorsikawe=(   21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 )
+pnocereswe=(     12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 )
+pnocprunwe=(     12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 )
 pnocallistowe=(  32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 )
 pnostarwe=(      10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 )
 
-## set variables for jobmanager 
-#scripts=( "runstar2" "runcallisto2" "cprun" "runceres" ) 
-#scriptscolname=( "Star" "Callisto" "CPRun" "Ceres" ) 
-#pnosweek=( ${pnostar[@]} ${pnocallisto[@]} ${pnocprun[@]} ${pnoceres[@]} ) 
-#pnoswe=( ${pnostarwe[@]} ${pnocallistowe[@]} ${pnocprunwe[@]} ${pnocereswe[@]} ) 
+# set variables for jobmanager 
+scripts=( "runcorsika" ) 
+scriptscolname=( "Corsika" ) 
+pnosweek=( ${pnocorsika[@]} ) 
+pnoswe=( ${pnocorsikawe[@]} ) 
 
-# set variables for jobmanager 
-scripts=( "runstar2" "runcallisto2" "runceres" ) 
-scriptscolname=( "Star" "Callisto" "Ceres" ) 
-pnosweek=( ${pnostar[@]} ${pnocallisto[@]} ${pnoceres[@]} ) 
-pnoswe=( ${pnostarwe[@]} ${pnocallistowe[@]} ${pnocereswe[@]} ) 
-
Index: trunk/MagicSoft/Mars/datacenter/scripts/sourcefile
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/sourcefile	(revision 9585)
+++ trunk/MagicSoft/Mars/datacenter/scripts/sourcefile	(revision 9586)
@@ -317,5 +317,9 @@
    done
    # add condition for the status of the step itself
-   query=$query" AND ISNULL("$step"Status.fStartTime) "
+   if [ $counter -gt 0 ]
+   then
+      query=$query" AND "
+   fi
+   query=$query" ISNULL("$step"Status.fStartTime) "
    query=$query" AND ISNULL("$step"Status.fStopTime) "
    query=$query" AND ISNULL("$step"Status.fReturnCode) "
