Changeset 540 for BAORadio/AmasNancay/getsignalfiles.sh
- Timestamp:
- Oct 3, 2011, 10:58:41 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BAORadio/AmasNancay/getsignalfiles.sh
r516 r540 24 24 if [ ! $# = 4 ]; then 25 25 $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 27 28 exit 0 28 29 fi … … 52 53 else 53 54 $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 55 57 exit 1 56 58 fi … … 66 68 67 69 #determine the sequence of signal files to download 70 #JEC 1/10/11 Use generic baodaqstatus name 68 71 #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 74 OUT1=${publicpath}/baodaqstatus-current.txt 71 75 72 76 if [ ! -e ${OUT1} -o ! -r ${OUT1} ]; then … … 82 86 # $RM ${tmppublicpath}/statusdaq.finished 83 87 $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 85 90 exit 1 86 91 fi … … 90 95 $ECHO "FATAL (${scriptName}): No run found for <${sourceRadio}> and date <${dateDAQ}>" 91 96 $CAT $OUT1 92 touch ${tmppublicpath}/getsignalfiles.finished 97 #JEC 29/9/11 avoid finished stuff 98 # touch ${tmppublicpath}/getsignalfiles.finished 93 99 exit 1 94 100 fi … … 98 104 if [ ${firstFile} -gt ${nfiles} ]; then 99 105 $ECHO "FATAL (${scriptName}): ${firstFile} > ${nfiles}" 100 touch ${tmppublicpath}/getsignalfiles.finished 106 #JEC 29/9/11 avoid finished stuff 107 # touch ${tmppublicpath}/getsignalfiles.finished 101 108 exit 1 102 109 fi … … 106 113 if [ ${lastFile} -gt ${nfiles} ]; then 107 114 $ECHO "FATAL (${scriptName}): ${lastFile} > ${nfiles}" 108 touch ${tmppublicpath}/getsignalfiles.finished 115 #JEC 29/9/11 avoid finished stuff 116 # touch ${tmppublicpath}/getsignalfiles.finished 109 117 exit 1 110 118 fi … … 112 120 if [ ${firstFile} -gt ${lastFile} ]; then 113 121 $ECHO "FATAL (${scriptName}): ${firstFile} > ${lastFile}" 114 touch ${tmppublicpath}/getsignalfiles.finished 122 #JEC 29/9/11 avoid finished stuff 123 # touch ${tmppublicpath}/getsignalfiles.finished 115 124 exit 1 116 125 fi … … 134 143 $ECHO "FATAL (${scriptName}): error while iget:" 135 144 $ECHO $igetStatus 136 touch ${tmppublicpath}/getsignalfiles.finished 145 #JEC 29/9/11 avoid finished stuff 146 # touch ${tmppublicpath}/getsignalfiles.finished 137 147 exit 1 138 148 fi … … 142 152 $ECHO "FATAL (${scriptName}): error while iget:" 143 153 $ECHO $igetStatus 144 touch ${tmppublicpath}/getsignalfiles.finished 154 #JEC 29/9/11 avoid finished stuff 155 # touch ${tmppublicpath}/getsignalfiles.finished 145 156 exit 1 146 157 fi … … 148 159 done 149 160 150 touch ${tmppublicpath}/getsignalfiles.finished 161 #JEC 29/9/11 avoid finished stuff 162 #touch ${tmppublicpath}/getsignalfiles.finished 151 163 exit 0
Note: See TracChangeset
for help on using the changeset viewer.