Changeset 579 for BAORadio/AmasNancay/trunk/getsignalfiles.sh
- Timestamp:
- Oct 20, 2011, 11:07:40 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BAORadio/AmasNancay/trunk/getsignalfiles.sh
r575 r579 24 24 if [ ! $# = 4 ]; then 25 25 $ECHO "usage: ${scriptName} <source:ex. Abell85> <date:YYYYMMDD> first last" 26 #JEC 29/9/11 avoid finished stuff27 # touch ${tmppublicpath}/getsignalfiles.finished28 26 exit 0 29 27 fi … … 46 44 47 45 #Path where the job will do temporary IO 48 if [ ${ENVIRONMENT} == "INTERACTIVE" ]; then 49 iojobpath="/sps/baoradio/AmasNancay/JEC" 50 $MKDIR -p $iojobpath 51 elif [ ${ENVIRONMENT} == "BATCH" ] ; then 52 iojobpath=${TMPBATCH} 53 else 54 $ECHO "FATAL (${scriptName}): environment is ${ENVIRONMENT} not allowed" 55 #JEC 29/9/11 avoid finished stuff 56 # touch ${tmppublicpath}/getsignalfiles.finished 57 exit 1 58 fi 46 . ${SCRIPTPATH}/set_iojobpath.sh 47 iojobpath=$(set_iojobpath) 59 48 cd ${iojobpath} 60 49 … … 86 75 # $RM ${tmppublicpath}/statusdaq.finished 87 76 $ECHO "FATAL (${scriptName}): ${OUT1} is missing or not readable..." 88 #JEC 29/9/11 avoid finished stuff89 # touch ${tmppublicpath}/getsignalfiles.finished90 77 exit 1 91 78 fi … … 95 82 $ECHO "FATAL (${scriptName}): No run found for <${sourceRadio}> and date <${dateDAQ}>" 96 83 $CAT $OUT1 97 #JEC 29/9/11 avoid finished stuff98 # touch ${tmppublicpath}/getsignalfiles.finished99 84 exit 1 100 85 fi … … 104 89 if [ ${firstFile} -gt ${nfiles} ]; then 105 90 $ECHO "FATAL (${scriptName}): ${firstFile} > ${nfiles}" 106 #JEC 29/9/11 avoid finished stuff107 # touch ${tmppublicpath}/getsignalfiles.finished108 91 exit 1 109 92 fi … … 113 96 if [ ${lastFile} -gt ${nfiles} ]; then 114 97 $ECHO "FATAL (${scriptName}): ${lastFile} > ${nfiles}" 115 #JEC 29/9/11 avoid finished stuff116 # touch ${tmppublicpath}/getsignalfiles.finished117 98 exit 1 118 99 fi … … 120 101 if [ ${firstFile} -gt ${lastFile} ]; then 121 102 $ECHO "FATAL (${scriptName}): ${firstFile} > ${lastFile}" 122 #JEC 29/9/11 avoid finished stuff123 # touch ${tmppublicpath}/getsignalfiles.finished124 103 exit 1 125 104 fi … … 143 122 $ECHO "FATAL (${scriptName}): error while iget:" 144 123 $ECHO $igetStatus 145 #JEC 29/9/11 avoid finished stuff146 # touch ${tmppublicpath}/getsignalfiles.finished147 124 exit 1 148 125 fi … … 152 129 $ECHO "FATAL (${scriptName}): error while iget:" 153 130 $ECHO $igetStatus 154 #JEC 29/9/11 avoid finished stuff155 # touch ${tmppublicpath}/getsignalfiles.finished156 131 exit 1 157 132 fi … … 159 134 done 160 135 161 #JEC 29/9/11 avoid finished stuff162 #touch ${tmppublicpath}/getsignalfiles.finished163 136 exit 0
Note: See TracChangeset
for help on using the changeset viewer.