Ignore:
Timestamp:
Oct 3, 2011, 10:58:41 AM (13 years ago)
Author:
campagne
Message:

avoid the link to a specif bao daq date (jec)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BAORadio/AmasNancay/hdrfitsextractor.sh

    r510 r540  
    4848
    4949
     50#JEC 1/10/11 Use generic baodaqstatus name
    5051#get the daq current irod status
    51 tag=`${DATE} +%F`
    52 OUT1=${publicpath}/baodaqstatus-${tag}.txt
     52#tag=`${DATE} +%F`
     53#OUT1=${publicpath}/baodaqstatus-${tag}.txt
     54OUT1=${publicpath}/baodaqstatus-current.txt
    5355
    54 if [ ! -e ${OUT1} ]; then
    55     $ECHO "We should bring the DAQ status more up to date, this take 1 or 2sec..."
    56     ${scriptpath}/statusdaq.sh > ${OUT1}
     56if [ ! -e ${OUT1}  -o ! -r ${OUT1} ]; then
     57    $ECHO "FATAL (${scriptName}): ${OUT1} has a problem"
     58    exit 1
    5759fi
     60
     61#if [ ! -e ${OUT1} ]; then
     62#    $ECHO "We should bring the DAQ status more up to date, this take 1 or 2sec..."
     63#    ${scriptpath}/statusdaq.sh > ${OUT1}
     64#fi
    5865
    5966if [ ! "<${sourceRadio}>" = "<>" ]; then
Note: See TracChangeset for help on using the changeset viewer.