Changeset 540 for BAORadio/AmasNancay/calibmaker.sh
- Timestamp:
- Oct 3, 2011, 10:58:41 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BAORadio/AmasNancay/calibmaker.sh
r529 r540 102 102 scriptpath="/afs/in2p3.fr/home/c/campagne/private/work/AmasNancay" 103 103 104 #JEC 1/10/11 Use generic baodaqstatus name 105 OUT1=${publicpath}/baodaqstatus-current.txt 106 # 104 107 #get the daq current irod status 105 tag=`${DATE} +%F`106 OUT1=${publicpath}/baodaqstatus-${tag}.txt107 108 #tag=`${DATE} +%F` 109 #OUT1=${publicpath}/baodaqstatus-${tag}.txt 110 # 108 111 if [ ! -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 116 121 #protect against remove/rewriting 117 $CHMOD -v 444 ${OUT1}122 # $CHMOD -v 444 ${OUT1} 118 123 fi 119 124 … … 143 148 144 149 150 #JEC 1/10/11 Use generic baodaqstatus name 145 151 #Look if the date has changed since beginning of the job! 146 curtag=`${DATE} +%F`147 if [ "<${curtag}>" != "<${tag}>" ]; then148 tag=${curtag}152 # curtag=`${DATE} +%F` 153 # if [ "<${curtag}>" != "<${tag}>" ]; then 154 # tag=${curtag} 149 155 #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}.txt151 $ECHO "We should bring the DAQ status more up to date, this take 1 or 2sec..."152 $RM -f ${tmppublicpath}/statusdaq.finished153 ${scriptpath}/statusdaq.sh > ${OUT1}154 while [ ! -f "${tmppublicpath}/statusdaq.finished" ]; do155 sleep 30156 done157 $RM ${tmppublicpath}/statusdaq.finished156 # 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 158 164 #protect against remove/rewriting 159 $CHMOD -v 444 ${OUT1}160 fi165 # $CHMOD -v 444 ${OUT1} 166 # fi 161 167 # 162 168 # look if the calibration files already exist
Note: See TracChangeset
for help on using the changeset viewer.