Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 8409)
+++ trunk/MagicSoft/Mars/Changelog	(revision 8410)
@@ -30,4 +30,6 @@
    * datacenter/scripts/runcallisto:
      - added condition for the linking of the .rc-file for muxdata
+   * datacenter/scripts/makecallistolinks:
+     - commented reason2 out
 
 
Index: trunk/MagicSoft/Mars/datacenter/scripts/filesondisk
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/filesondisk	(revision 8409)
+++ trunk/MagicSoft/Mars/datacenter/scripts/filesondisk	(revision 8410)
@@ -130,5 +130,5 @@
    echo "missing cacofile for run "$runno >> $scriptlog 2>&1 
    echo "-> finding cacofile" >> $scriptlog 2>&1 
-   ccfile=`find $subsystempath/cc/ -name [2][0][0-2][0-9][0,1][0-9][0-3][0-9]_*${runno}_[P,D,C,S]_*_S.rep` 2>/dev/null
+   ccfile=`find $subsystempath/cc/ -name [2][0][0-2][0-9][0,1][0-9][0-3][0-9]_*${runno}_[P,D,C,S]_*_S.rep -and ! -name [2][0][0-2][0-9][0,1][0-9][0-3][0-9]_*[1-9]${runno}_[P,D,C,S]_*_S.rep` 2>/dev/null
    echo " ccfile: "$ccfile  >> $scriptlog 2>&1 
    if [ "$ccfile" = "" ]
Index: trunk/MagicSoft/Mars/datacenter/scripts/makecallistolinks
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/makecallistolinks	(revision 8409)
+++ trunk/MagicSoft/Mars/datacenter/scripts/makecallistolinks	(revision 8410)
@@ -54,7 +54,7 @@
 #.* == hi or lo
 reason1="Pulse is too much to the right, out of .*-gain range"
-reason2="No entry for resource id '2[45]' found in"
+#reason2="No entry for resource id '2[45]' found in"
 echo "reason1: "$reason1 >> $scriptlog 2>&1
-echo "reason2: "$reason2 >> $scriptlog 2>&1
+#echo "reason2: "$reason2 >> $scriptlog 2>&1
 
 # find files containing reason 
@@ -72,5 +72,6 @@
 for file in $files
 do 
-   pulse=`cat $file | grep "$reason1\|$reason2"`
+#   pulse=`cat $file | grep "$reason1\|$reason2"`
+   pulse=`cat $file | grep "$reason1"`
    sequ=`echo $file | cut -d/ -f6`
    path=`dirname $file`
Index: trunk/MagicSoft/Mars/datacenter/scripts/movingrawfiles
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/movingrawfiles	(revision 8409)
+++ trunk/MagicSoft/Mars/datacenter/scripts/movingrawfiles	(revision 8410)
@@ -20,5 +20,5 @@
 #   Author(s): Daniela Dorner  08/2004 <mailto:dorner@astro.uni-wuerzburg.de>
 #
-#   Copyright: MAGIC Software Development, 2000-2006
+#   Copyright: MAGIC Software Development, 2000-2007
 #
 #
@@ -49,12 +49,21 @@
 
 printprocesslog "INFO moving directories from fromlapalma to fromtape"
-#find directories which have to be copied
+# find directories which have to be copied
 dirs=`ls /magic/datacenter/fromlapalma/RAWchk/*/*.finished | sed -e 's/RAWchk/RAW/g' | cut -d/ -f1-6`
 if [ ! "$dirs" == "" ]
 then
-   # change permission for this dirctories
+   # change permission for this directories
    ssh lapalma@apollo chmod -R g+w $dirs >> $scriptlog 2>&1
    # move directories to the tapedirectory
-   mv -v $dirs /magic/datacenter/fromtape/rawdata/ >> $scriptlog 2>&1 
+   mv -v $dirs /magic/datacenter/fromtape/rawdata/ >> $scriptlog 2>&1
+fi
+
+printprocesslog "INFO moving directories from muxdata to rawdata"
+# find directories which have to be copied
+days=`find /magic/datacenter/fromtape/muxdata/* -type d`
+if [ ! "$days" == "" ]
+then
+   # move directories to the tapedirectory
+   mv -v $days /magic/datacenter/fromtape/rawdata/ >> $scriptlog 2>&1
 fi
 
@@ -65,24 +74,24 @@
 if [ "$rawfiles" == "" ]
 then
-   echo "no files to move -> exit" >> $scriptlog 2>&1 
-   finish >> $scriptlog 2>&1 
+   echo "no files to move -> exit" >> $scriptlog 2>&1
+   finish >> $scriptlog 2>&1
 fi
 
-printprocesslog "INFO moving moving rawfiles to $datapath/rawfiles"
+printprocesslog "INFO moving rawfiles to $datapath/rawfiles"
 for rawfile in $rawfiles
 do 
 # workaround for rawfiles with wrong timing
-#  newrawfile=`echo $rawfile | sed -e 's/center\/fromtape\/rawdata/\/rawfiles-wrong-timing/g' -e 's/_/\//1' -e 's/_/\//1'`
+#   newrawfile=`echo $rawfile | sed -e 's/center\/fromtape\/rawdata/\/rawfiles-wrong-timing/g' -e 's/_/\//1' -e 's/_/\//1'`
    newrawfile=`echo $rawfile | sed -e 's/center\/fromtape\/rawdata/\/rawfiles/g' -e 's/_/\//1' -e 's/_/\//1'`
    newdir=`dirname $newrawfile`
-   makedir $newdir >> $scriptlog 2>&1 
+   makedir $newdir >> $scriptlog 2>&1
 
-   mv -v $rawfile $newrawfile >> $scriptlog 2>&1 
+   mv -v $rawfile $newrawfile >> $scriptlog 2>&1
 done
 
-rmdir -v /magic/datacenter/fromtape/rawdata/* >> $scriptlog 2>&1 
+rmdir -v /magic/datacenter/fromtape/rawdata/* >> $scriptlog 2>&1
 
 printprocesslog "INFO launching filesondisk"
-echo "launching filesondisk" >> $scriptlog 2>&1 
+echo "launching filesondisk" >> $scriptlog 2>&1
 $scriptspath/filesondisk&
 
Index: trunk/MagicSoft/Mars/datacenter/scripts/runcallisto
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/runcallisto	(revision 8409)
+++ trunk/MagicSoft/Mars/datacenter/scripts/runcallisto	(revision 8410)
@@ -70,4 +70,5 @@
 # define callisto.rc files
 callistorcnew=$setuppath/$program/callisto.rc
+callistorcmux=$setuppath/$program/callisto_mux.rc
 # find callisto.rc file
 if [ -e $outpath/callisto.rc ]
@@ -77,5 +78,10 @@
 else
    echo "no $program.rc found in $outpath -> making link " >> $scriptlog 2>&1
-   ln -vs $callistorcnew $outpath/callisto.rc >> $scriptlog 2>&1
+   if [ $sequence -gt 200000 ]
+   then
+   	ln -vs $callistorcmux $outpath/callisto.rc >> $scriptlog 2>&1
+   else
+   	ln -vs $callistorcnew $outpath/callisto.rc >> $scriptlog 2>&1
+   fi
    callistorcseq=$outpath/callisto.rc
 fi
