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

    r529 r540  
    102102scriptpath="/afs/in2p3.fr/home/c/campagne/private/work/AmasNancay"
    103103
     104#JEC 1/10/11 Use generic baodaqstatus name
     105OUT1=${publicpath}/baodaqstatus-current.txt
     106#
    104107#get the daq current irod status
    105 tag=`${DATE} +%F`
    106 OUT1=${publicpath}/baodaqstatus-${tag}.txt
    107 
     108#tag=`${DATE} +%F`
     109#OUT1=${publicpath}/baodaqstatus-${tag}.txt
     110#
    108111if [ ! -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
     112    $ECHO "FATAL (${scriptName}): ${OUT1} has a problem"
     113    exit 1
     114#    $ECHO "We should bring the DAQ status more up to date, this take 1 or 2sec..."
     115#    $RM -f ${tmppublicpath}/statusdaq.finished
     116#   ${scriptpath}/statusdaq.sh > ${OUT1}
     117#    while [ ! -f "${tmppublicpath}/statusdaq.finished" ]; do
     118#       sleep 30
     119#    done
     120#    $RM ${tmppublicpath}/statusdaq.finished
    116121#protect against remove/rewriting   
    117     $CHMOD -v 444 ${OUT1}
     122#    $CHMOD -v 444 ${OUT1}
    118123fi
    119124
     
    143148
    144149
     150#JEC 1/10/11 Use generic baodaqstatus name
    145151#Look if the date has changed since beginning of the job!
    146   curtag=`${DATE} +%F`
    147   if [ "<${curtag}>" != "<${tag}>" ]; then
    148       tag=${curtag}
     152#  curtag=`${DATE} +%F`
     153#  if [ "<${curtag}>" != "<${tag}>" ]; then
     154#      tag=${curtag}
    149155#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
     156#      OUT1=${publicpath}/baodaqstatus-${curtag}.txt
     157#      $ECHO "We should bring the DAQ status more up to date, this take 1 or 2sec..."
     158#      $RM -f ${tmppublicpath}/statusdaq.finished
     159#      ${scriptpath}/statusdaq.sh > ${OUT1}
     160#      while [ ! -f "${tmppublicpath}/statusdaq.finished" ]; do
     161#         sleep 30
     162#      done
     163#      $RM ${tmppublicpath}/statusdaq.finished
    158164#protect against remove/rewriting   
    159       $CHMOD -v 444 ${OUT1}
    160   fi
     165#      $CHMOD -v 444 ${OUT1}
     166#  fi
    161167#
    162168# look if the calibration files already exist
Note: See TracChangeset for help on using the changeset viewer.