Index: trunk/MagicSoft/Mars/datacenter/scripts/runreflector
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/runreflector	(revision 9173)
+++ trunk/MagicSoft/Mars/datacenter/scripts/runreflector	(revision 9355)
@@ -59,10 +59,6 @@
 }
 
-
-scriptlog=$runlogpath/run$program-$datetime.log
-date >> $scriptlog 2>&1
-
 # get sequence # 
-gettodo "1">> $scriptlog 2>&1
+gettodo "1" 
 run=${primaries[0]}
 # get reflector runnumber
@@ -72,13 +68,11 @@
 # lock sequ
 lockfile=$lockpath/lock-$table-$column-$reflectorrunno.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,12 +94,5 @@
 infile=$mcpath"/corsika/"$date"/cer"`printf %06d \`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
-
-makedir $outpath >> $scriptlog 2>&1
+makedir $outpath 
 if ls $outfile >/dev/null 2>&1
 then
@@ -127,9 +114,7 @@
 
 case $check1 in
-   0)   echo " check1=$check1 -> everything ok " >> $scriptlog 2>&1
-        printprocesslog "INFO $program finished successfully for run $reflectorrunno"
+   0)   printprocesslog "INFO $program finished successfully for run $reflectorrunno (check1=$check1)"
         ;;
-   *)   echo " check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
-        printprocesslog "ERROR $program failed for run $reflectorrunno"
+   *)   printprocesslog "ERROR $program failed for run $reflectorrunno (check1=$check1)"
         com=$Freflector
         check=$check1
@@ -137,6 +122,6 @@
 esac
 
-setstatus "stop" >> $scriptlog 2>&1
+setstatus "stop" 
 
-finish >> $scriptlog 2>&1
+finish 
 
