Index: trunk/MagicSoft/Mars/datacenter/scripts/fillcallisto
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/fillcallisto	(revision 7909)
+++ trunk/MagicSoft/Mars/datacenter/scripts/fillcallisto	(revision 7911)
@@ -28,6 +28,5 @@
 # all sequences of which the results are not yet in the database.
 #
-# After checking, if the script is already running, the todolist is 
-# written 
+# After checking if the script is already running the todolist is written.
 # Then for each sequence in the todo list the calibration results are 
 # filled into the table Calibration in the database using the macros 
@@ -56,5 +55,5 @@
 
 # get todo file
-gettodolist  >> $scriptlog 2>&1
+gettodo  >> $scriptlog 2>&1
 
 sequences=(`cat $todofile`)
@@ -79,5 +78,4 @@
    calibfile=$path/calib$no2.root
    fillcallistologpath=$logpath/$program/$no
-   echo "$programlogpath: "$fillcallistologpath >> $scriptlog 2>&1
    makedir $fillcallistologpath >> $scriptlog 2>&1
    fillcaliblog=$fillcallistologpath/fillcalib-$sequence.log
@@ -91,10 +89,10 @@
 
    case $check1 in
-      1)   echo "check1=$check1 -> everything ok -> run fillsignal " >> $scriptlog 2>&1 ;;
-      0)   echo "check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&1 
+      1)   echo " check1=$check1 -> everything ok -> run fillsignal " >> $scriptlog 2>&1 ;;
+      0)   echo " check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&1 
            check="no"
            setstatus "stop" >> $scriptlog 2>&1
            continue ;;
-      *)   echo "check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
+      *)   echo " check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
            com=$Ffillcalib
            check=$check1
@@ -105,14 +103,14 @@
    check2=`root -q -b $macrospath/fillsignal.C+\("\"$signalfile\""\,kFALSE\) | tee $fillsignallog | grep int | sed -e 's/(int)//'`
    case $check2 in
-      1)   echo "check2=$check2 -> everything ok " >> $scriptlog 2>&1 ;;
-      0)   echo "check2=$check2 -> no connection to db -> continue..." >> $scriptlog 2>&1 
+      1)   echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1 ;;
+      0)   echo " check2=$check2 -> no connection to db -> continue..." >> $scriptlog 2>&1 
            check="no"
            ;;
-      *)   echo "check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
+      *)   echo " check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
            com=$Ffillsignal
            check=$check2
            ;;
    esac
-   echo "inserting the status for $program for sequence $sequence into the db" >> $scriptlog 2>&1
+   
    setstatus "stop" >> $scriptlog 2>&1
 done
