Index: trunk/MagicSoft/Mars/datacenter/scripts/fillstar
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/fillstar	(revision 9054)
+++ trunk/MagicSoft/Mars/datacenter/scripts/fillstar	(revision 9355)
@@ -42,13 +42,10 @@
 set -C
 
-scriptlog=$runlogpath/$program-$datetime.log
-date >> $scriptlog 2>&1
-
 # check if the script is already running
 lockfile=$lockpath/lock-$program.txt
-checklock  >> $scriptlog 2>&1
+checklock 
 
 # get todo list
-gettodo  >> $scriptlog 2>&1
+gettodo 
 
 cd $mars
@@ -65,21 +62,17 @@
    starfile=$path/star$no2.root
    fillstarlogpath=$logpath/$program/$no
-   makedir $fillstarlogpath >> $scriptlog 2>&1
+   makedir $fillstarlogpath 
    fillstarlog=$fillstarlogpath/$program-$sequence.log
 
-   echo "run $program for sequence $sequence" >> $scriptlog 2>&1
-   setstatus "start" >> $scriptlog 2>&1
+   setstatus "start" 
 
    check2=`root -q -b $macrospath/fillstar.C+\("\"$starfile\""\,kFALSE\) | tee $fillstarlog | intgrep`
    case $check2 in
-      1)   echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1 
-           printprocesslog "INFO done fillstar successfully for sequence $sequence"
+      1)   printprocesslog "INFO done fillstar successfully for sequence $sequence (check2=$check2)"
            ;;
-      0)   echo " check2=$check2 -> no connection to db -> continue..." >> $scriptlog 2>&1 
-           printprocesslog "WARN connection to DB failed"
+      0)   printprocesslog "WARN connection to DB failed (check2=$check2)"
            check="no"
            ;;
-      *)   echo " check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
-           printprocesslog "ERROR fillstar failed for sequence $sequence"
+      *)   printprocesslog "ERROR fillstar failed for sequence $sequence (check2=$check2)"
            com=$Ffillstar
            check=$check2
@@ -87,7 +80,7 @@
    esac
    
-   setstatus "stop" >> $scriptlog 2>&1
+   setstatus "stop" 
 done
 
-finish >> $scriptlog 2>&1
+finish 
 
