Index: trunk/MagicSoft/Mars/datacenter/scripts/runstar
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/runstar	(revision 7467)
+++ trunk/MagicSoft/Mars/datacenter/scripts/runstar	(revision 7469)
@@ -142,4 +142,6 @@
   no=`printf %08d $sequence | cut -c 0-4`
   no2=`printf %08d $sequence`
+  var1=$no
+  var2=$no2
   outpath="$datapath/$program/$no/$no2"
   inpath=`echo $outpath | sed -e 's/$program/callisto/'`
@@ -152,5 +154,5 @@
   
   echo "run $program..." >> $scriptlog 2>&1
-  setstatus "start"
+  setstatus "start" >> $scriptlog 2>&1
 
   ./star -b -q -v4 -f --log=$outpath/$program$no2.log --html=$outpath/$program$no2.html --ind=$inpath --out=$outpath $sequfile  2>> $scriptlog> /dev/null
@@ -165,5 +167,5 @@
   esac
   echo "inserting the status for $program for sequence $sequence into the db" >> $scriptlog 2>&1
-  setstatus "stop"
+  setstatus "stop" >> $scriptlog 2>&1
 done
 
