Changeset 540 for BAORadio/AmasNancay/submit2bqs-scaextractor.sh
- Timestamp:
- Oct 3, 2011, 10:58:41 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BAORadio/AmasNancay/submit2bqs-scaextractor.sh
r516 r540 43 43 scriptpath="/afs/in2p3.fr/home/c/campagne/private/work/AmasNancay" 44 44 45 #JEC 1/10/11 Use generic baodaqstatus name 45 46 #the daq current irod status 46 tag=`${DATE} +%F` 47 OUT1=${publicpath}/baodaqstatus-${tag}.txt 47 #tag=`${DATE} +%F` 48 #OUT1=${publicpath}/baodaqstatus-${tag}.txt 49 OUT1=${publicpath}/baodaqstatus-current.txt 48 50 49 51 if [ ! -e ${OUT1} -o ! -r ${OUT1} ]; then 50 $ECHO "We should bring the DAQ status more up to date, this take 1 or 2sec..." 51 $RM -f ${tmppublicpath}/statusdaq.finished 52 ${scriptpath}/statusdaq.sh > ${OUT1} 53 while [ ! -f "${tmppublicpath}/statusdaq.finished" ]; do 54 sleep 30 55 done 56 $RM ${tmppublicpath}/statusdaq.finished 52 $ECHO "FATAL (${scriptName}): ${OUT1} has a problem" 53 exit 1 54 # $ECHO "We should bring the DAQ status more up to date, this take 1 or 2sec..." 55 # $RM -f ${tmppublicpath}/statusdaq.finished 56 # ${scriptpath}/statusdaq.sh > ${OUT1} 57 # while [ ! -f "${tmppublicpath}/statusdaq.finished" ]; do 58 # sleep 30 59 # done 60 # $RM ${tmppublicpath}/statusdaq.finished 57 61 #protect against remove/rewriting 58 $CHMOD -v 444 ${OUT1}62 # $CHMOD -v 444 ${OUT1} 59 63 fi 60 64
Note: See TracChangeset
for help on using the changeset viewer.