Changeset 579 for BAORadio/AmasNancay/trunk/getscafiles.sh
- Timestamp:
- Oct 20, 2011, 11:07:40 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BAORadio/AmasNancay/trunk/getscafiles.sh
r575 r579 22 22 $ECHO "usage: ${script 23 23 Name} <source:ex. Abell85> <date:YYYYMMDD>" 24 #JEC 29/9/11 avoid finished stuff25 # touch ${tmppublicpath}/getscafiles.finished26 24 exit 0 27 25 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}/getscafiles.finished 57 exit 1 58 fi 46 . ${SCRIPTPATH}/set_iojobpath.sh 47 iojobpath=$(set_iojobpath) 59 48 cd ${iojobpath} 60 49 … … 84 73 # $RM ${tmppublicpath}/statusdaq.finished 85 74 $ECHO "FATAL (${scriptName}): ${OUT1} is missing or not readable..." 86 #JEC 29/9/11 avoid finished stuff87 # touch ${tmppublicpath}/getscafiles.finished88 75 exit 1 89 76 fi … … 93 80 if [ "<${nfiles}>" = "<>" ]; then 94 81 $ECHO "FATAL (${scriptName}): No run found for <${sourceRadio}> and date <${dateDAQ}>" 95 #JEC 29/9/11 avoid finished stuff96 # touch ${tmppublicpath}/getscafiles.finished97 82 exit 1 98 83 fi … … 116 101 if [ "<$status>" != "<>" ]; then 117 102 $ECHO "FATAL (${scriptName}): connot proceed further with $sourceRadio $dateDAQ" 118 #JEC 29/9/11 avoid finished stuff119 # touch ${tmppublicpath}/getscafiles.finished120 103 exit 1 121 104 fi … … 153 136 $ECHO "FATAL (${scriptName}): error while iget:" 154 137 $ECHO $igetStatus 155 #JEC 29/9/11 avoid finished stuff156 # touch ${tmppublicpath}/getscafiles.finished157 138 exit 1 158 139 fi … … 160 141 $RM -f $OUT4 161 142 162 touch ${tmppublicpath}/getscafiles.finished163 143 exit 0
Note: See TracChangeset
for help on using the changeset viewer.