Changeset 540 for BAORadio/AmasNancay/submit2bqs-rawonoffmaker.sh
- Timestamp:
- Oct 3, 2011, 10:58:41 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BAORadio/AmasNancay/submit2bqs-rawonoffmaker.sh
r535 r540 77 77 scriptpath="/afs/in2p3.fr/home/c/campagne/private/work/AmasNancay" 78 78 #get the daq current irod status 79 tag=`${DATE} +%F` 80 OUT1=${publicpath}/baodaqstatus-${tag}.txt 79 #JEC 1/10/11 Use generic baodaqstatus name 80 #### tag=`${DATE} +%F` 81 OUT1=${publicpath}/baodaqstatus-current.txt 81 82 82 83 if [ ! -e ${OUT1} -o ! -r ${OUT1} ]; then 83 $ECHO "We should bring the DAQ status more up to date, this take 1 or 2sec..." 84 $RM -f ${tmppublicpath}/statusdaq.finished 85 ${scriptpath}/statusdaq.sh > ${OUT1} 86 while [ ! -f "${tmppublicpath}/statusdaq.finished" ]; do 87 sleep 30 88 done 89 $RM ${tmppublicpath}/statusdaq.finished 84 $ECHO "FATAL (${scriptName}): ${OUT1} has a problem" 85 exit 1 86 #JEC 29/9/11 avoid finished stuff 87 # $RM -f ${tmppublicpath}/statusdaq.finished 88 # ${scriptpath}/statusdaq.sh > ${OUT1} 89 # while [ ! -f "${tmppublicpath}/statusdaq.finished" ]; do 90 # sleep 30 91 # done 92 # $RM ${tmppublicpath}/statusdaq.finished 90 93 #protect against remove/rewriting 91 $CHMOD -v 444 ${OUT1}94 # $CHMOD -v 444 ${OUT1} 92 95 fi 93 96
Note: See TracChangeset
for help on using the changeset viewer.