Index: trunk/MagicSoft/Mars/datacenter/scripts/checkstardone
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/checkstardone	(revision 9054)
+++ trunk/MagicSoft/Mars/datacenter/scripts/checkstardone	(revision 9061)
@@ -59,28 +59,20 @@
    printprocesslog "INFO checking star done for sequences of dataset $dataset"
 
-   no=`printf %08d $dataset | cut -c 0-5`
-   no2=`printf %08d $dataset`
-   dsnum=`printf %08d $dataset`
-
-   echo "run $program for sequence $sequence..." >> $scriptlog 2>&1
-
-   outpath=$logpath/$program/$no/$no2
+   outpath=$logpath/$program/`printf %08d $dataset | cut -c 0-5`
    makedir $outpath  >> $scriptlog 2>&1 
 
    setstatus "start" >> $scriptlog 2>&1
 
-   check1=`root -q -b $macrospath/checkstardone.C+\(\""$dsnum\""\) | tee $outpath/checkstardone-$dsnum.log | intgrep`
+   check1=`root -q -b $macrospath/checkstardone.C+\($dataset\) | tee $outpath/checkstardone-$dataset.log | intgrep`
 
    case $check1 in
       1)   echo " check1=$check1 -> everything ok -> continue with next dataset..." >> $scriptlog 2>&1 ;;
-      2)   echo " check1=$check1 -> star files for dataset $dsnum not yet available -> continue..." >> $scriptlog 2>&1 
-           printprocesslog "INFO files not yet available for dataset $dsnum"
+      2)   echo " check1=$check1 -> star files for dataset $dataset not yet available -> continue..." >> $scriptlog 2>&1 
+           printprocesslog "INFO files not yet available for dataset $dataset"
            check="no"
-           break
            ;;
       0)   echo " check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&1 
            printprocesslog "WARN connection to DB failed"
            check="no"
-           break
            ;;
       *)   echo " check1=$check1 -> ERROR " >> $scriptlog 2>&1 
@@ -88,5 +80,4 @@
            com=$Fstardone
            check=$check1
-           break
            ;;
    esac
