Changeset 8494 for trunk/MagicSoft


Ignore:
Timestamp:
05/11/07 13:22:55 (18 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r8493 r8494  
    9999}
    100100
     101subsystemdatapath=/magic/subsystemdata
    101102
    102103interactive="yes"
     
    227228      echo "calfile: "$calfile
    228229      outpath=`dirname $calfile`
    229       echo "outpath: "$outpath
    230 
    231       merpplogpath=$outpath"/merpplogs"
    232       mkdir -pv $merpplogpath
    233 
     230
     231      runno=`echo $calfile | cut -d_ -f2 | sed -e 's/^0//' | sed -e 's/^0//' | sed -e 's/^0//' `
     232      echo "finding cc and cacofile for run $runno..."
    234233      date=`date --date \`basename $calfile | cut -d_ -f1\` +%Y/%m/%d`
    235234      ccpath=$subsystempath/cc/$date
    236235      cacopath=$subsystempath/caco/$date
    237       runno=`echo $calfile | cut -d_ -f2 | sed -e 's/^0//' | sed -e 's/^0//' | sed -e 's/^0//' `
    238236      ccfile=`find $ccpath -name 20[0-2][0-9][01][0-9][0-3][0-9]_*${runno}_[PDCS]_*_S.rep`
    239237      source=`echo $ccfile | cut -d_ -f4`
    240       cacofile=`find /magic/subsystemdata/caco/$date -name dc_20[0-2][0-9]_[01][0-9]_[0-3][0-9]_*${runno}_${source}.txt`
    241       echo "runno: "$runno
    242       echo "ccfile: "$ccfile
    243       if [ "$ccfile" = "" ]
    244       then
    245          echo "no ccfile found for run "$runno
    246          break
    247       fi
    248       echo "cacofile: "$cacofile
     238      cacofile=`find $cacopath -name dc_20[0-2][0-9]_[01][0-9]_[0-3][0-9]_*${runno}_${source}.txt`
    249239      if [ "$cacofile" = "" ]
    250240      then
     
    260250            else
    261251               break
    262                echo "cacofile: "$cacofile
    263252            fi
    264253         done
    265254      fi
     255      if [ "$ccfile" = "" ]
     256      then
     257         echo "no ccfile found for run "$runno
     258         exit
     259      fi
     260      if [ "$cacofile" = "" ]
     261      then
     262         echo "no cacofile found for run "$runno
     263         exit
     264      fi
     265      echo "ccfile: "$ccfile
     266      echo "cacofile: "$cacofile
     267
     268      merpplogpath=$outpath"/merpplogs"
     269      mkdir -pv $merpplogpath
    266270
    267271      program=merppccupdate
Note: See TracChangeset for help on using the changeset viewer.