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-scaextractor.sh

    r516 r540  
    4343scriptpath="/afs/in2p3.fr/home/c/campagne/private/work/AmasNancay"
    4444
     45#JEC 1/10/11 Use generic baodaqstatus name
    4546#the daq current irod status
    46 tag=`${DATE} +%F`
    47 OUT1=${publicpath}/baodaqstatus-${tag}.txt
     47#tag=`${DATE} +%F`
     48#OUT1=${publicpath}/baodaqstatus-${tag}.txt
     49OUT1=${publicpath}/baodaqstatus-current.txt
    4850
    4951if [ ! -e ${OUT1}  -o ! -r ${OUT1} ]; then
    50     $ECHO "We should bring the DAQ status more up to date, this take 1 or 2sec..."
    51     $RM -f ${tmppublicpath}/statusdaq.finished
    52     ${scriptpath}/statusdaq.sh > ${OUT1}
    53     while [ ! -f "${tmppublicpath}/statusdaq.finished" ]; do
    54         sleep 30
    55     done
    56     $RM ${tmppublicpath}/statusdaq.finished
     52    $ECHO "FATAL (${scriptName}): ${OUT1} has a problem"
     53    exit 1
     54#    $ECHO "We should bring the DAQ status more up to date, this take 1 or 2sec..."
     55#    $RM -f ${tmppublicpath}/statusdaq.finished
     56#    ${scriptpath}/statusdaq.sh > ${OUT1}
     57#    while [ ! -f "${tmppublicpath}/statusdaq.finished" ]; do
     58#       sleep 30
     59#    done
     60#    $RM ${tmppublicpath}/statusdaq.finished
    5761#protect against remove/rewriting   
    58     $CHMOD -v 444 ${OUT1}
     62#    $CHMOD -v 444 ${OUT1}
    5963fi
    6064
Note: See TracChangeset for help on using the changeset viewer.