Index: trunk/MagicSoft/Mars/datacenter/scripts/doexclusions
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/doexclusions	(revision 9047)
+++ trunk/MagicSoft/Mars/datacenter/scripts/doexclusions	(revision 9054)
@@ -50,20 +50,13 @@
 
 # get todo list
-getdolist  >> $scriptlog 2>&1
-
-dates=(`cat $todofile`)
-if [ "$dates" = "" ]
-then 
-   echo "nothing to do -> exit"  >> $scriptlog 2>&1
-   finish >> $scriptlog 2>&1
-fi
-echo "dates: "${dates[@]} >> $scriptlog 2>&1
-rm -v $todofile >> $scriptlog 2>&1
+gettodo  >> $scriptlog 2>&1
 
 cd $mars
 
 # do exclusions for each date in the todo file
-for date in ${dates[@]}
-do 
+for (( s=0 ; s < $num ; s++ ))
+do
+   date=${primaries[$s+$s]}
+   telnum=${primaries[$s+$s+1]}
    echo "do exclusions for date "$date >> $scriptlog 2>&1
    printprocesslog "INFO do exclusions for $date"
@@ -73,8 +66,7 @@
    doexclusionslog=$doexclusionspath/doexclusions-$date.log
 
-   primvar=$date
    setstatus "start" >> $scriptlog 2>&1
 
-   check1=`root -q -b $macrospath/doexclusions.C+\("\"$date\""\,1\,kFALSE\) | tee $doexclusionslog | intgrep`
+   check1=`root -q -b $macrospath/doexclusions.C+\("\"$date\""\,$telnum\,kFALSE\) | tee $doexclusionslog | intgrep`
 
    case $check1 in
