Index: trunk/MagicSoft/Mars/datacenter/scripts/runcamera
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/runcamera	(revision 9174)
+++ trunk/MagicSoft/Mars/datacenter/scripts/runcamera	(revision 9355)
@@ -63,22 +63,17 @@
 
 
-scriptlog=$runlogpath/run$program-$datetime.log
-date >> $scriptlog 2>&1
-
 # get sequence # 
-gettodo >> $scriptlog 2>&1
+gettodo 
 run=$process
 
 # lock sequ
 lockfile=$lockpath/lock-$table-$column-$sequence.txt
-checklock >> $scriptlog 2>&1
+checklock 
 
-echo "run $program for run $run..." >> $scriptlog 2>&1
 printprocesslog "INFO starting $program for run $run"
 
-setstatus "start" >> $scriptlog 2>&1
+setstatus "start" 
 
-echo "run $program for run $run "
-echo "create input card... "
+printprocesslog "INFO create input card... "
 
 # get values for inputcard
@@ -100,13 +95,6 @@
 seeds=`sendquery`
 
-echo "" >> $scriptlog 2>&1
-echo "INPUTCARD:" >> $scriptlog 2>&1
-echo "----------" >> $scriptlog 2>&1
-echo "" >> $scriptlog 2>&1
-echo "" >> $scriptlog 2>&1
-printinputcard >> $scriptlog 2>&1
-
 logfile=$outpath/$program"-"`printf %06d $run`".log"
-makedir $outpath >> $scriptlog 2>&1
+makedir $outpath 
 
 cd $detectordir/Camera
@@ -121,9 +109,7 @@
 
 case $check1 in
-   0)   echo " check1=$check1 -> everything ok " >> $scriptlog 2>&1
-        printprocesslog "INFO $program finished successfully for sequence $sequence"
+   0)   printprocesslog "INFO $program finished successfully for sequence $sequence (check1=$check1)"
         ;;
-   *)   echo " check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
-        printprocesslog "ERROR $program failed for sequence $sequence"
+   *)   printprocesslog "ERROR $program failed for sequence $sequence (check1=$check1)"
         com=$Fcamera
         check=$check1
@@ -131,6 +117,6 @@
 esac
 
-setstatus "stop" >> $scriptlog 2>&1
+setstatus "stop" 
 
-finish >> $scriptlog 2>&1
+finish 
 
