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/submit2bqs-rawonoffmaker.sh

    r535 r540  
    7777scriptpath="/afs/in2p3.fr/home/c/campagne/private/work/AmasNancay"
    7878#get the daq current irod status
    79 tag=`${DATE} +%F`
    80 OUT1=${publicpath}/baodaqstatus-${tag}.txt
     79#JEC 1/10/11 Use generic baodaqstatus name
     80#### tag=`${DATE} +%F`
     81OUT1=${publicpath}/baodaqstatus-current.txt
    8182
    8283if [ ! -e ${OUT1}  -o ! -r ${OUT1} ]; then
    83     $ECHO "We should bring the DAQ status more up to date, this take 1 or 2sec..."
    84     $RM -f ${tmppublicpath}/statusdaq.finished
    85     ${scriptpath}/statusdaq.sh > ${OUT1}
    86     while [ ! -f "${tmppublicpath}/statusdaq.finished" ]; do
    87         sleep 30
    88     done
    89     $RM ${tmppublicpath}/statusdaq.finished
     84    $ECHO "FATAL (${scriptName}): ${OUT1} has a problem"
     85    exit 1
     86#JEC 29/9/11 avoid finished stuff
     87#    $RM -f ${tmppublicpath}/statusdaq.finished
     88#    ${scriptpath}/statusdaq.sh > ${OUT1}
     89#    while [ ! -f "${tmppublicpath}/statusdaq.finished" ]; do
     90#       sleep 30
     91#    done
     92#    $RM ${tmppublicpath}/statusdaq.finished
    9093#protect against remove/rewriting   
    91     $CHMOD -v 444 ${OUT1}
     94#    $CHMOD -v 444 ${OUT1}
    9295fi
    9396
Note: See TracChangeset for help on using the changeset viewer.