Changeset 572


Ignore:
Timestamp:
Oct 11, 2011, 2:35:37 PM (13 years ago)
Author:
campagne
Message:

EOF bug (jec)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BAORadio/AmasNancay/trunk/anacalibmaker.sh

    r570 r572  
    3636simulationMode=Off
    3737while [ $# -gt 0 ]
    38 do
     38  do
    3939  case "$1" in
    4040      -src)  sourceRadio=$2; shift;;
     
    4343      -bwd)  bwBAOCalib=$2; shift;;
    4444      -sim)  simulationMode=On;;
    45         -h)
    46             echo >&2 \
    47             "usage: $0 -src souce -date YYYYMMDD [-freq freq in MHz (default ${freqBAOCalib})] [-bwd bandwidth in MHz (default ${bwBAOCalib})]"
    48             exit 1;;
    49         *)  break;;     # terminate while loop
    50     esac
    51     shift
     45      -h)
     46      echo >&2 \
     47          "usage: $0 -src souce -date YYYYMMDD [-freq freq in MHz (default ${freqBAOCalib})] [-bwd bandwidth in MHz (default ${bwBAOCalib})]"
     48      exit 1;;
     49      *)  break;;       # terminate while loop
     50  esac
     51  shift
    5252done
    5353
     
    293293      cat > ${logFile} <<EOF
    294294      Ok calibration finished
    295       EOF
     295EOF
     296#WARNING: the EOF must start at 1st column overwise the rest of the script is part of the file cat...
    296297  else
    297298      ${scriptpath}/Objs/analyse -act calib -inPath ${iojobpath}  -source  ${sourceRadio} -date ${dateDAQ} -sca ${scaFile} -specdir calibcycle  -numcycle ${firstCycle},${lastCycle} -calibopt mean  -debuglev 1 -freqBAOCalib ${freqBAOCalib} -bwBAOCalib ${bwBAOCalib} >& ${logFile}
    298299  fi
     300#
    299301  $ECHO "DEBUG (${scriptName}): analysis finished `date`. Look for errors before saving to Irods"
    300302  rcstatus=`$GREP -i "Ok calibration finished" ${logFile} | $WC -l`
Note: See TracChangeset for help on using the changeset viewer.