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/onoffmaker.sh

    r529 r540  
    102102scriptpath="/afs/in2p3.fr/home/c/campagne/private/work/AmasNancay"
    103103
     104#JEC 1/10/11 Use generic baodaqstatus name
    104105#get the daq current irod status
    105 tag=`${DATE} +%F`
    106 OUT1=${publicpath}/baodaqstatus-${tag}.txt
     106#tag=`${DATE} +%F`
     107#OUT1=${publicpath}/baodaqstatus-${tag}.txt
     108OUT1=${publicpath}/baodaqstatus-current.txt
    107109
    108110if [ ! -e ${OUT1}  -o ! -r ${OUT1} ]; then
    109     $ECHO "We should bring the DAQ status more up to date, this take 1 or 2sec..."
    110     $RM -f ${tmppublicpath}/statusdaq.finished
    111     ${scriptpath}/statusdaq.sh > ${OUT1}
    112     while [ ! -f "${tmppublicpath}/statusdaq.finished" ]; do
    113         sleep 30
    114     done
    115     $RM ${tmppublicpath}/statusdaq.finished
     111    $ECHO "FATAL (${scriptName}): ${OUT1} has a problem"
     112    exit 1
     113#    $ECHO "We should bring the DAQ status more up to date, this take 1 or 2sec..."
     114#    $RM -f ${tmppublicpath}/statusdaq.finished
     115#    ${scriptpath}/statusdaq.sh > ${OUT1}
     116#    while [ ! -f "${tmppublicpath}/statusdaq.finished" ]; do
     117#       sleep 30
     118#    done
     119#    $RM ${tmppublicpath}/statusdaq.finished
    116120#protect against remove/rewriting   
    117     $CHMOD -v 444 ${OUT1}
     121#    $CHMOD -v 444 ${OUT1}
    118122fi
    119123
     
    143147
    144148
     149#JEC 1/10/11 Use generic baodaqstatus name
    145150#Look if the date has changed since beginning of the job!
    146   curtag=`${DATE} +%F`
    147   if [ "<${curtag}>" != "<${tag}>" ]; then
    148       tag=${curtag}
     151#  curtag=`${DATE} +%F`
     152#  if [ "<${curtag}>" != "<${tag}>" ]; then
     153#      tag=${curtag}
    149154#it is necessary to update the daq status as the day has changed during the processing... (batch can take a long time...)
    150       OUT1=${publicpath}/baodaqstatus-${curtag}.txt
    151       $ECHO "We should bring the DAQ status more up to date, this take 1 or 2sec..."
    152       $RM -f ${tmppublicpath}/statusdaq.finished
    153       ${scriptpath}/statusdaq.sh > ${OUT1}
    154       while [ ! -f "${tmppublicpath}/statusdaq.finished" ]; do
    155           sleep 30
    156       done
    157       $RM ${tmppublicpath}/statusdaq.finished
     155#      OUT1=${publicpath}/baodaqstatus-${curtag}.txt
     156#      $ECHO "We should bring the DAQ status more up to date, this take 1 or 2sec..."
     157#      $RM -f ${tmppublicpath}/statusdaq.finished
     158#      ${scriptpath}/statusdaq.sh > ${OUT1}
     159#      while [ ! -f "${tmppublicpath}/statusdaq.finished" ]; do
     160#         sleep 30
     161#      done
     162#      $RM ${tmppublicpath}/statusdaq.finished
    158163#protect against remove/rewriting   
    159       $CHMOD -v 444 ${OUT1}
    160   fi
     164#      $CHMOD -v 444 ${OUT1}
     165#  fi
    161166#
    162167# look if the gain & calibration files exist
Note: See TracChangeset for help on using the changeset viewer.