Index: trunk/MagicSoft/Mars/datacenter/scripts/checkstardone
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/checkstardone	(revision 9018)
+++ trunk/MagicSoft/Mars/datacenter/scripts/checkstardone	(revision 9054)
@@ -48,19 +48,12 @@
 
 # get todo list
-getdolist  >> $scriptlog 2>&1
-
-datasets=(`cat $todofile`)
-if [ "$datasets" = "" ]
-then 
-   echo "nothing to do -> exit"  >> $scriptlog 2>&1
-   finish >> $scriptlog 2>&1
-fi
-echo "datasets: "${datasets[@]} >> $scriptlog 2>&1
-rm -v $todofile >> $scriptlog 2>&1
+gettodo  >> $scriptlog 2>&1
 
 cd $mars
 
-for dataset in ${datasets[@]}
-do 
+for (( s=0 ; s < $num ; s++ ))
+do
+   dataset=${primaries[$s+$s]}
+   telnum=${primaries[$s+$s+1]}
    echo "checking star done for sequences of dataset $dataset..." >> $scriptlog 2>&1 
    printprocesslog "INFO checking star done for sequences of dataset $dataset"
@@ -75,5 +68,4 @@
    makedir $outpath  >> $scriptlog 2>&1 
 
-   primvar=$dataset
    setstatus "start" >> $scriptlog 2>&1
 
@@ -95,5 +87,4 @@
            printprocesslog "ERROR checkstardone.C failed"
            com=$Fstardone
-           comadd=$sequence
            check=$check1
            break
