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

    r516 r540  
    2424if [ ! $# = 4 ]; then
    2525  $ECHO "usage: ${scriptName} <source:ex. Abell85> <date:YYYYMMDD> first last"
    26   touch ${tmppublicpath}/getsignalfiles.finished
     26#JEC 29/9/11 avoid finished stuff
     27#  touch ${tmppublicpath}/getsignalfiles.finished
    2728  exit 0
    2829fi
     
    5253else
    5354   $ECHO "FATAL (${scriptName}): environment is ${ENVIRONMENT} not allowed"
    54    touch ${tmppublicpath}/getsignalfiles.finished
     55#JEC 29/9/11 avoid finished stuff
     56#   touch ${tmppublicpath}/getsignalfiles.finished
    5557   exit 1
    5658fi
     
    6668
    6769#determine the sequence of signal files to download
     70#JEC 1/10/11 Use generic baodaqstatus name
    6871#get the daq current irod status
    69 tag=`${DATE} +%F`
    70 OUT1=${publicpath}/baodaqstatus-${tag}.txt
     72#tag=`${DATE} +%F`
     73#OUT1=${publicpath}/baodaqstatus-${tag}.txt
     74OUT1=${publicpath}/baodaqstatus-current.txt
    7175
    7276if [ ! -e ${OUT1} -o ! -r ${OUT1} ]; then
     
    8286#     $RM ${tmppublicpath}/statusdaq.finished
    8387    $ECHO "FATAL (${scriptName}): ${OUT1} is missing or not readable..."
    84     touch ${tmppublicpath}/getsignalfiles.finished
     88#JEC 29/9/11 avoid finished stuff
     89#    touch ${tmppublicpath}/getsignalfiles.finished
    8590    exit 1
    8691fi
     
    9095    $ECHO "FATAL (${scriptName}): No run found for <${sourceRadio}> and date <${dateDAQ}>"
    9196    $CAT $OUT1
    92     touch ${tmppublicpath}/getsignalfiles.finished
     97#JEC 29/9/11 avoid finished stuff
     98#    touch ${tmppublicpath}/getsignalfiles.finished
    9399    exit 1
    94100fi
     
    98104if [ ${firstFile} -gt  ${nfiles} ]; then
    99105    $ECHO "FATAL (${scriptName}): ${firstFile} >  ${nfiles}"
    100     touch ${tmppublicpath}/getsignalfiles.finished
     106#JEC 29/9/11 avoid finished stuff
     107#    touch ${tmppublicpath}/getsignalfiles.finished
    101108    exit 1
    102109fi
     
    106113if [ ${lastFile} -gt  ${nfiles} ]; then
    107114    $ECHO "FATAL (${scriptName}): ${lastFile} >  ${nfiles}"
    108     touch ${tmppublicpath}/getsignalfiles.finished
     115#JEC 29/9/11 avoid finished stuff
     116#    touch ${tmppublicpath}/getsignalfiles.finished
    109117    exit 1
    110118fi
     
    112120if [ ${firstFile} -gt  ${lastFile} ]; then
    113121    $ECHO "FATAL (${scriptName}): ${firstFile} >  ${lastFile}"
    114     touch ${tmppublicpath}/getsignalfiles.finished
     122#JEC 29/9/11 avoid finished stuff
     123#    touch ${tmppublicpath}/getsignalfiles.finished
    115124    exit 1
    116125fi
     
    134143       $ECHO "FATAL (${scriptName}): error while iget:"
    135144       $ECHO $igetStatus
    136        touch ${tmppublicpath}/getsignalfiles.finished
     145#JEC 29/9/11 avoid finished stuff
     146#       touch ${tmppublicpath}/getsignalfiles.finished
    137147       exit 1
    138148   fi
     
    142152       $ECHO "FATAL (${scriptName}): error while iget:"
    143153       $ECHO $igetStatus
    144        touch ${tmppublicpath}/getsignalfiles.finished
     154#JEC 29/9/11 avoid finished stuff
     155#       touch ${tmppublicpath}/getsignalfiles.finished
    145156       exit 1
    146157   fi
     
    148159done
    149160
    150 touch ${tmppublicpath}/getsignalfiles.finished
     161#JEC 29/9/11 avoid finished stuff
     162#touch ${tmppublicpath}/getsignalfiles.finished
    151163exit 0
Note: See TracChangeset for help on using the changeset viewer.