Index: trunk/DataCheck/Processing/FillMoonInfo.sh
===================================================================
--- trunk/DataCheck/Processing/FillMoonInfo.sh	(revision 14849)
+++ trunk/DataCheck/Processing/FillMoonInfo.sh	(revision 14875)
@@ -8,6 +8,6 @@
 printprocesslog "INFO starting $0 with option doupdate="$doupdate
 
-logfile=$runlogpath"/FillMoonInfo-"$datetime".log"
-date >> $logfile
+#logfile=$runlogpath"/FillMoonInfo-"$datetime".log"
+#date >> $logfile
 
 # get last 3, 6 or 9 nights
@@ -17,7 +17,7 @@
         )
 #dates=( `find $auxdata -mindepth 3 -type d | sort -r | sed "s/\${auxdata_for_sed}//g" | sed -e 's/^\///'` )
-echo ${dates[@]}
+
 printprocesslog "INFO processing the following night(s): "${dates[@]}
-echo  `date`": processing the following night(s): "${dates[@]} >> $logfile 2>&1
+#echo  `date`": processing the following night(s): "${dates[@]} #>> $logfile 2>&1
 
 # do filling of aux data 
@@ -29,5 +29,6 @@
       continue
    fi
-   echo "processing date "$date
+   printprocesslog "INFO processing date "$date
+   #echo "INFO processing date "$date
 
    # get file numbers from DB
@@ -52,7 +53,8 @@
    do
       printprocesslog "INFO processing file number "$runnumber"_"`printf %03d $filenum`
-      echo  `date`": processing file number "$runnumber"_"`printf %03d $filenum` >> $logfile 2>&1
+      #echo  `date`": processing file number "$runnumber"_"`printf %03d $filenum` # >> $logfile 2>&1
       
       # get input info from DB 
+      #  query 999 in case value is empty to easily recognize this case
       query="SELECT if (isnull(fRightAscension), 999, fRightAscension), "
       query=$query" if (isnull(fDeclination), 999, fDeclination), "
@@ -60,5 +62,5 @@
       query=$query" WHERE fNight="$runnumber" AND fRunID="$filenum
       info=( `sendquery` )
-      echo ${info[@]}
+      #echo ${info[@]}
       #echo "/home/fact/FACT++.db/moon "${info[2]} ${info[3]}" --ra=${info[0]} --dec=${info[1]} 2>/dev/null"
       if [ "${info[0]}" == "999" ] && [ "${info[1]}" == "999" ]
@@ -70,10 +72,9 @@
       # return values of the programm
       # timestamp sunzd moon-visible moondisk moonzd angletomoon angletosun
-      echo ${lightinfo[@]}
+      #echo ${lightinfo[@]}
       
       # build query to update runinfo in DB
       query="UPDATE RunInfo SET fSunZenithDistance="${lightinfo[2]}", fMoonDisk="${lightinfo[4]}
       query=$query", fMoonZenithDistance="${lightinfo[5]}
-      echo $query
       if [ "${info[0]}" != "999" ] && [ "${info[1]}" != "999" ]
       then 
@@ -83,5 +84,5 @@
       # add where condition
       query=$query" WHERE fNight="$runnumber" AND fRunID="$filenum
-      echo $query
+      #echo $query
       # send query to DB
       sendquery >/dev/null
