Index: trunk/MagicSoft/Mars/datacenter/scripts/runcallisto
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/runcallisto	(revision 8525)
+++ 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
