Ignore:
Timestamp:
05/09/07 17:05:15 (18 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/scripts/processsequence

    r8231 r8482  
    2020#   Author(s): Daniela Dorner  10/2006 <mailto:dorner@astro.uni-wuerzburg.de>
    2121#
    22 #   Copyright: MAGIC Software Development, 2000-2006
     22#   Copyright: MAGIC Software Development, 2000-2007
    2323#
    2424#
     
    8080          echo ""
    8181          ;;
    82      [1-9]|[0-9][0-9]|1[0-1][0-9]|12[0-7])
     82      [1-9]|[0-9][0-9]|1[0-1][0-9]|12[0-7])
    8383          echo -n "ERROR@$HOSTNAME: $program returned $check - please check the logfile $logfile"
    8484          if [ "$program" == "callisto" ]
     
    229229      mkdir -pv $merpplogpath
    230230
     231      date=`date --date \`basename $calfile | cut -d_ -f1 +%Y/%m/%d\``
     232      ccpath=$subsystempath/cc/$date
     233      cacopath=$subsystempath/caco/$date
    231234      runno=`echo $calfile | cut -d_ -f2 | sed -e 's/^0//' | sed -e 's/^0//' | sed -e 's/^0//' `
    232       ccfile=`find /magic/subsystemdata/cc/ -name 20[0-2][0-9][0,1][0-9][0-3][0-9]_*${runno}_[P,D,C,S]_*_S.rep`
    233       cacofile=`find /magic/subsystemdata/caco/ -name dc_20[0-2][0-9]_[01][0-9]_[0-3][0-9]_*${runno}_*.txt`
     235      ccfile=`find $ccpath -name 20[0-2][0-9][01][0-9][0-3][0-9]_*${runno}_[PDCS]_*_S.rep`
     236      source=`echo $ccfile | cut -d_ -f4`
     237      cacofile=`find /magic/subsystemdata/caco/$date -name dc_20[0-2][0-9]_[01][0-9]_[0-3][0-9]_*${runno}_${source}.txt`
    234238      echo "runno: "$runno
    235239      echo "ccfile: "$ccfile
     
    247251         do
    248252            newrun=`echo $runno - $i | bc`
    249      #      echo "$missingcacorun + $i = $newrun"
    250             path=`dirname $ccfile`
    251             path=`echo $path | sed -e 's/cc/caco/'`
    252             echo "path: "$path
    253             cacofile=`find $path -name *$newrun*`
     253            cacofile=`find $cacopath -name *$newrun*`
    254254            if [ "$cacofile" = "" ]
    255255            then
Note: See TracChangeset for help on using the changeset viewer.