Changeset 540 for BAORadio/AmasNancay/onoffmaker.sh
- Timestamp:
- Oct 3, 2011, 10:58:41 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BAORadio/AmasNancay/onoffmaker.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 104 105 #get the daq current irod status 105 tag=`${DATE} +%F` 106 OUT1=${publicpath}/baodaqstatus-${tag}.txt 106 #tag=`${DATE} +%F` 107 #OUT1=${publicpath}/baodaqstatus-${tag}.txt 108 OUT1=${publicpath}/baodaqstatus-current.txt 107 109 108 110 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 111 $ECHO "FATAL (${scriptName}): ${OUT1} has a problem" 112 exit 1 113 # $ECHO "We should bring the DAQ status more up to date, this take 1 or 2sec..." 114 # $RM -f ${tmppublicpath}/statusdaq.finished 115 # ${scriptpath}/statusdaq.sh > ${OUT1} 116 # while [ ! -f "${tmppublicpath}/statusdaq.finished" ]; do 117 # sleep 30 118 # done 119 # $RM ${tmppublicpath}/statusdaq.finished 116 120 #protect against remove/rewriting 117 $CHMOD -v 444 ${OUT1}121 # $CHMOD -v 444 ${OUT1} 118 122 fi 119 123 … … 143 147 144 148 149 #JEC 1/10/11 Use generic baodaqstatus name 145 150 #Look if the date has changed since beginning of the job! 146 curtag=`${DATE} +%F`147 if [ "<${curtag}>" != "<${tag}>" ]; then148 tag=${curtag}151 # curtag=`${DATE} +%F` 152 # if [ "<${curtag}>" != "<${tag}>" ]; then 153 # tag=${curtag} 149 154 #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.finished155 # OUT1=${publicpath}/baodaqstatus-${curtag}.txt 156 # $ECHO "We should bring the DAQ status more up to date, this take 1 or 2sec..." 157 # $RM -f ${tmppublicpath}/statusdaq.finished 158 # ${scriptpath}/statusdaq.sh > ${OUT1} 159 # while [ ! -f "${tmppublicpath}/statusdaq.finished" ]; do 160 # sleep 30 161 # done 162 # $RM ${tmppublicpath}/statusdaq.finished 158 163 #protect against remove/rewriting 159 $CHMOD -v 444 ${OUT1}160 fi164 # $CHMOD -v 444 ${OUT1} 165 # fi 161 166 # 162 167 # look if the gain & calibration files exist
Note: See TracChangeset
for help on using the changeset viewer.