Index: trunk/MagicSoft/Mars/datacenter/scripts/runcallisto
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/runcallisto	(revision 8167)
+++ trunk/MagicSoft/Mars/datacenter/scripts/runcallisto	(revision 8176)
@@ -89,4 +89,5 @@
 setstatus "start" >> $scriptlog 2>&1
 
+echo "./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" >> $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
 check1=$?
@@ -99,10 +100,10 @@
         echo "finding files to be updated..." >> $scriptlog 2>&1
         calfiles=`find $outpath -name *_Y_* `
-        echo " files to be updated: "$calfiles >> $scriptlog 2>&1
         if [ "$calfiles" = "" ]
         then 
            echo " no files found -> continue with next sequence" >> $scriptlog 2>&1
-           continue
+           printprocesslog "ERROR no calfiles found"
         fi
+        echo " files to be updated: "$calfiles >> $scriptlog 2>&1
         
         merpplogpath=$outpath"/merpplogs"
@@ -124,5 +125,5 @@
            then
               echo "no ccfile found for run "$runno >> $scriptlog 2>&1
-              printprocesslog "ERROR  no ccfile found for $calfile"
+              printprocesslog "ERROR  ccfile $ccfile not found for $calfile"
               com=$Fnoccfile
               comadd=$runno
@@ -137,5 +138,4 @@
               do 
                  newrun=`echo $runno - $i | bc`
-          #      echo "$missingcacorun + $i = $newrun"
                  path=`dirname $ccfile`
                  path=`echo $path | sed -e 's/cc/caco/'`
@@ -147,7 +147,9 @@
                     then
                        echo "no cacofile found" >> $scriptlog 2>&1
+                       printprocesslog "ERROR cacofile $cacofile not found for $calfile"
                        com=$Fnocacofile
                        comadd=$runno
                        check=0
+                       break 2
                     fi   
                     continue
@@ -158,4 +160,5 @@
               done
            fi
+           echo "./merpp -u --log=$merpplogpath/merppccupdate$runno.log --html=$merpplogpath/merppccupdate$runno.html --auto-time-stop --runfile=$runno $ccfile $calfile 2>> $scriptlog> /dev/null" >> $scriptlog 2>&1
            ./merpp -u --log=$merpplogpath/merppccupdate$runno.log --html=$merpplogpath/merppccupdate$runno.html --auto-time-stop --runfile=$runno $ccfile $calfile 2>> $scriptlog> /dev/null
            check2=$?
@@ -165,5 +168,5 @@
                         ;;
         	   *)   echo " check2=$check2 -> ERROR -> merppccupdate failed" >> $scriptlog 2>&1
-                        printprocesslog "ERROR merppccupdate failed for $calfile"
+                        printprocesslog "ERROR merppccupdate with file $ccfile failed for $calfile"
                         com=$Fmerppcc
                         comadd=$runno
@@ -171,4 +174,5 @@
                         break ;;
            esac
+           echo "./merpp -u --log=$merpplogpath/merppcacoupdate$runno.log --html=$merpplogpath/merppcacoupdate$runno.html --auto-time $cacofile $calfile 2>> $scriptlog> /dev/null" >> $scriptlog 2>&1
            ./merpp -u --log=$merpplogpath/merppcacoupdate$runno.log --html=$merpplogpath/merppcacoupdate$runno.html --auto-time $cacofile $calfile 2>> $scriptlog> /dev/null
            check3=$?
@@ -178,5 +182,5 @@
                         ;;
         	   *)   echo " check3=$check3 -> ERROR -> merppcacoupdate failed" >> $scriptlog 2>&1
-                        printprocesslog "ERROR merppcacoupdate failed for $calfile"
+                        printprocesslog "ERROR merppcacoupdate with file $cacofile failed for $calfile"
                         com=$Fmerppcaco
                         comadd=$runno
Index: trunk/MagicSoft/Mars/datacenter/scripts/runstar
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/runstar	(revision 8167)
+++ trunk/MagicSoft/Mars/datacenter/scripts/runstar	(revision 8176)
@@ -71,4 +71,7 @@
 setstatus "start" >> $scriptlog 2>&1
 
+ssh pegasus /opt/SUNWsamfs/bin/stage $inpath/*_Y_*.root &
+
+echo "./star -b -q -v4 -f --log=$outpath/$program$no2.log --html=$outpath/$program$no2.html --ind=$inpath --out=$outpath $sequfile  2>> $scriptlog> /dev/null" >> $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
 check1=$?
