Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 8687)
+++ trunk/MagicSoft/Mars/Changelog	(revision 8688)
@@ -33,8 +33,13 @@
      - changed fgIntegralLoLim from 0.7 to 0.8
 
+
+
  2007/08/21 Stefan Ruegamer
 
    * datacenter/scripts/movingrawfiles_OK
      - removed rmdir -p option
+     
+   * datacenter/scripts/runcallisto
+     - added staging of files
 
 
Index: trunk/MagicSoft/Mars/datacenter/scripts/runcallisto
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/runcallisto	(revision 8687)
+++ trunk/MagicSoft/Mars/datacenter/scripts/runcallisto	(revision 8688)
@@ -70,4 +70,20 @@
 makedir $outpath >> $scriptlog 2>&1
 sequfile="$sequpath/$no/sequence$no2.txt"
+
+# stage the needed files; to be removed as soon as the correct stub file size has been determined
+echo "staging files:" >> $scriptlog 2>&1
+date=`grep Night $sequfile | cut -c 18-27 | sed -e "s/-/\//g"`
+runs=`grep ^Runs $sequfile | cut -d: -f2`
+i=0
+
+for run in ${runs[@]}
+do
+   files[i]=20*_0*${run}_[PCD]_*_E.raw.gz
+   echo ${files[i]} >> $scriptlog 2>&1
+   let i++
+done
+
+ssh -nx phoenix "cd $datapath/rawfiles/${date}; /opt/SUNWsamfs/bin/stage ${files[@]}"
+
 
 # define callisto.rc files
