Index: trunk/MagicSoft/Mars/datacenter/scripts/runcallisto
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/runcallisto	(revision 7467)
+++ trunk/MagicSoft/Mars/datacenter/scripts/runcallisto	(revision 7469)
@@ -44,6 +44,6 @@
 
 # define callisto.rc files
-callistorcnew=$setuppath/$program/$program.rc
-callistorcmarapr05=$setuppath/$program/$program_MarApr05.rc
+callistorcnew=$setuppath/$program/callisto.rc
+callistorcmarapr05=$setuppath/$program/callisto_MarApr05.rc
 
 table=SequenceProcessStatus
@@ -147,4 +147,6 @@
   no=`printf %08d $sequence | cut -c 0-4`
   no2=`printf %08d $sequence`
+  var1=$no
+  var2=$no2
   outpath="$datapath/$program/$no/$no2"
   echo "outpath: "$outpath >> $scriptlog 2>&1
@@ -155,21 +157,21 @@
   
   # find callisto.rc file
-  if [ -e $outpath/$program.rc ]
+  if [ -e $outpath/callisto.rc ]
   then
      echo "found $program.rc in $outpath -> using this " >> $scriptlog 2>&1
-     callistorcseq=$outpath/$program.rc
+     callistorcseq=$outpath/callisto.rc
   else
      echo "no $program.rc found in $outpath -> making link " >> $scriptlog 2>&1
      if [ 49735 -lt $sequence ] && [ $sequence -lt 53516 ]
      then 
-        ln -vs $callistorcmarapr05 $outpath/$program.rc >> $scriptlog 2>&1
+        ln -vs $callistorcmarapr05 $outpath/callisto.rc >> $scriptlog 2>&1
      else
-        ln -vs $callistorcnew $outpath/$program.rc >> $scriptlog 2>&1
+        ln -vs $callistorcnew $outpath/callisto.rc >> $scriptlog 2>&1
      fi
-     callistorcseq=$outpath/$program.rc
+     callistorcseq=$outpath/callisto.rc
   fi
 
   echo "run $program..." >> $scriptlog 2>&1
-  setstatus "start"
+  setstatus "start" >> $scriptlog 2>&1
 
   ./callisto -b -q -v4 -f -raw --log=$outpath/$program$no2.log --html=$outpath/$program$no2.html --out=$outpath --config=$callistorcseq $sequfile  2>> $scriptlog > /dev/null
@@ -265,5 +267,5 @@
   # set status 
   echo "inserting the status for $program for sequence $sequence into the db" >> $scriptlog 2>&1
-  setstatus "stop"
+  setstatus "stop"  >> $scriptlog 2>&1
 done
 
