Index: trunk/MagicSoft/Mars/datacenter/scripts/checkstardone
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/checkstardone	(revision 7465)
+++ trunk/MagicSoft/Mars/datacenter/scripts/checkstardone	(revision 7471)
@@ -100,4 +100,6 @@
 do 
    no=`printf %08d $dataset | cut -c 0-5`
+   var1=$no
+   var2=$dataset
    echo "checking files for dataset $dataset..." >> $scriptlog 2>&1 
    datasetfile=$datasetpath/$no/dataset`printf %08d $dataset`.txt
@@ -117,6 +119,10 @@
    makedir $outpath  >> $scriptlog 2>&1 
    
+   echo "run $program..." >> $scriptlog 2>&1
+   setstatus "start" >> $scriptlog 2>&1
+
    for sequence in ${sequences[@]}
    do 
+
       check1=`root -q -b $macrospath/checkstardone.C+\(\""$sequence\""\) | tee $outpath/checkstardone-$sequence.log | grep int | sed -e 's/(int)//'`
 
@@ -125,16 +131,13 @@
          *)   echo "check1=$check1 -> ERROR " >> $scriptlog 2>&1 
               echo "starfiles not available for sequence -> continue" >> $scriptlog 2>&1 
-              continue 2
+              com="starfile missing for sequence $sequence"
+              check=$check1
+              break
               ;;
       esac
    done
    
-   statustime="Now()"
-   failed="NULL"
-   starttime="NULL"
-   failedtime="NULL"
-   var1=$no
-   var2=$dataset
-   setstatus
+   echo "inserting the status for $program for dataset $dataset into the db" >> $scriptlog 2>&1
+   setstatus "stop" >> $scriptlog 2>&1
 done
 
