- Timestamp:
- Oct 3, 2011, 10:58:41 AM (13 years ago)
- Location:
- BAORadio/AmasNancay
- Files:
-
- 1 added
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
BAORadio/AmasNancay/analyse.cc
r527 r540 87 87 if( left.size() < right.size() ) 88 88 return true; 89 return false;89 ////////////POSSIBLY A BUG return false; 90 90 for( string::const_iterator lit = left.begin(), rit = right.begin(); lit != left.end() && rit != right.end(); ++lit, ++rit ) 91 91 if( tolower( *lit ) < tolower( *rit ) ) … … 93 93 else if( tolower( *lit ) > tolower( *rit ) ) 94 94 return false; 95 return false; ///////TO BE FIXED 95 96 }//JEC 22/9/11 comparison, not case sensitive to sort File liste END 96 97 //----- -
BAORadio/AmasNancay/anarawonoffmaker.sh
r535 r540 37 37 case "$1" in 38 38 -src) sourceRadio=$2; shift;; 39 -date) dateSelected=$2; shift;;40 -sim) simulationMode=On;;41 -h)42 echo >&2 \43 44 exit 1;;45 *) break;; # terminate while loop46 esac47 shift39 -date) dateSelected=$2; shift;; 40 -sim) simulationMode=On;; 41 -h) 42 echo >&2 \ 43 "usage: $0 -src souce -date YYYYMMDD [-freq freq in MHz (default ${freqBAOCalib})] [-sim to trig simulation mode]" 44 exit 1;; 45 *) break;; # terminate while loop 46 esac 47 shift 48 48 done 49 49 … … 100 100 scriptpath="/afs/in2p3.fr/home/c/campagne/private/work/AmasNancay" 101 101 102 #JEC 1/10/11 Use generic baodaqstatus name 102 103 #get the daq current irod status 103 tag=`${DATE} +%F` 104 OUT1=${publicpath}/baodaqstatus-${tag}.txt 104 #tag=`${DATE} +%F` 105 #OUT1=${publicpath}/baodaqstatus-${tag}.txt 106 OUT1=${publicpath}/baodaqstatus-current.txt 105 107 106 108 if [ ! -e ${OUT1} -o ! -r ${OUT1} ]; then 107 $ECHO "We should bring the DAQ status more up to date, this take 1 or 2sec..." 108 $RM -f ${tmppublicpath}/statusdaq.finished 109 ${scriptpath}/statusdaq.sh > ${OUT1} 110 while [ ! -f "${tmppublicpath}/statusdaq.finished" ]; do 111 sleep 30 112 done 113 $RM ${tmppublicpath}/statusdaq.finished 109 $ECHO "FATAL (${scriptName}): ${OUT1} has a problem" 110 exit 1 111 # $ECHO "We should bring the DAQ status more up to date, this take 1 or 2sec..." 112 # $RM -f ${tmppublicpath}/statusdaq.finished 113 # ${scriptpath}/statusdaq.sh > ${OUT1} 114 # while [ ! -f "${tmppublicpath}/statusdaq.finished" ]; do 115 # sleep 30 116 # done 117 # $RM ${tmppublicpath}/statusdaq.finished 114 118 #protect against remove/rewriting 115 $CHMOD -v 444 ${OUT1}119 # $CHMOD -v 444 ${OUT1} 116 120 fi 117 121 … … 140 144 141 145 146 #JEC 1/10/11 Use generic baodaqstatus name 142 147 #Look if the date has changed since beginning of the job! 143 curtag=`${DATE} +%F`144 if [ "<${curtag}>" != "<${tag}>" ]; then145 tag=${curtag}148 # curtag=`${DATE} +%F` 149 # if [ "<${curtag}>" != "<${tag}>" ]; then 150 # tag=${curtag} 146 151 #it is necessary to update the daq status as the day has changed during the processing... (batch can take a long time...) 147 OUT1=${publicpath}/baodaqstatus-${curtag}.txt148 $ECHO "We should bring the DAQ status more up to date, this take 1 or 2sec..."149 $RM -f ${tmppublicpath}/statusdaq.finished150 ${scriptpath}/statusdaq.sh > ${OUT1}151 152 sleep 30153 done154 $RM ${tmppublicpath}/statusdaq.finished152 # OUT1=${publicpath}/baodaqstatus-${curtag}.txt 153 # $ECHO "We should bring the DAQ status more up to date, this take 1 or 2sec..." 154 # $RM -f ${tmppublicpath}/statusdaq.finished 155 # ${scriptpath}/statusdaq.sh > ${OUT1} 156 # while [ ! -f "${tmppublicpath}/statusdaq.finished" ]; do 157 # sleep 30 158 # done 159 # $RM ${tmppublicpath}/statusdaq.finished 155 160 #protect against remove/rewriting 156 $CHMOD -v 444 ${OUT1}157 fi161 # $CHMOD -v 444 ${OUT1} 162 # fi 158 163 # 159 164 # look if the gain & calibration files exist -
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 -
BAORadio/AmasNancay/etude_gain.pic
r525 r540 2 2 set source "Abell85" 3 3 set srclower "abell85" 4 set date "20110 428"4 set date "20110507" 5 5 6 6 #################################################### … … 12 12 openfits ${toppath}/${source}/${date}${srclower}/gain_${date}_${srclower}.fits 13 13 del g0 g1 14 objaoper gain_ 20110428_abell85row 0 g015 objaoper gain_ 20110428_abell85row 1 g114 objaoper gain_${date}_${srclower} row 0 g0 15 objaoper gain_${date}_${srclower} row 1 g1 16 16 plot2d g1 (n/8192)*250+1250 val n>0 "red cpts nsta notit" 17 17 plot2d g0 (n/8192)*250+1250 val n>0 "same blue cpts nsta notit" … … 26 26 27 27 openppf ${toppath}/${source}/${date}${srclower}/gain_monitor_${date}_${srclower}.ppf 28 #attention les "monitor" ont ete utilise a une epoque ou il n'y avait pas de 29 #reordering... 30 plot2d monitor n val n>0 "black cpts nsta notit" 28 31 plot2d gainmoni n val n>0 "black cpts nsta notit" 29 32 plot2d gainmoni0 n val n>0 "same blue cpts nsta notit" -
BAORadio/AmasNancay/gainmaker.sh
r529 r540 101 101 102 102 103 #JEC 1/10/11 Use generic baodaqstatus name 103 104 #get the daq current irod status 104 tag=`${DATE} +%F` 105 OUT1=${publicpath}/baodaqstatus-${tag}.txt 105 #tag=`${DATE} +%F` 106 #OUT1=${publicpath}/baodaqstatus-${tag}.txt 107 OUT1=${publicpath}/baodaqstatus-current.txt 106 108 107 109 if [ ! -e ${OUT1} -o ! -r ${OUT1} ]; then 108 $ECHO "We should bring the DAQ status more up to date, this take 1 or 2sec..." 109 $RM -f ${tmppublicpath}/statusdaq.finished 110 ${scriptpath}/statusdaq.sh > ${OUT1} 111 while [ ! -f "${tmppublicpath}/statusdaq.finished" ]; do 112 sleep 30 113 done 114 $RM ${tmppublicpath}/statusdaq.finished 110 $ECHO "FATAL (${scriptName}): ${OUT1} has a problem" 111 exit 1 112 # $RM -f ${tmppublicpath}/statusdaq.finished 113 # ${scriptpath}/statusdaq.sh > ${OUT1} 114 # while [ ! -f "${tmppublicpath}/statusdaq.finished" ]; do 115 # sleep 30 116 # done 117 # $RM ${tmppublicpath}/statusdaq.finished 115 118 #protect against remove/rewriting 116 $CHMOD -v 444 ${OUT1} 119 # $CHMOD -v 444 ${OUT1} 120 # 117 121 fi 118 122 … … 136 140 $ECHO "DEBUG (${scriptName}): irods root dir $i" 137 141 dateDAQ=`$ECHO ${i} | $AWK '{split($0,a,"/"); print a[6];}' | $AWK "{sub(/${srclower}/,\"\"); print}"` 142 #JEC 1/10/11 Use generic baodaqstatus name 138 143 #Look if the date has changed since beginning of the job! 139 curtag=`${DATE} +%F`140 if [ "<${curtag}>" != "<${tag}>" ]; then141 tag=${curtag}144 # curtag=`${DATE} +%F` 145 # if [ "<${curtag}>" != "<${tag}>" ]; then 146 # tag=${curtag} 142 147 #it is necessary to update the daq status as the day has changed during the processing... (batch can take a long time...) 143 OUT1=${publicpath}/baodaqstatus-${curtag}.txt144 $ECHO "We should bring the DAQ status more up to date, this take 1 or 2sec..."145 $RM -f ${tmppublicpath}/statusdaq.finished146 ${scriptpath}/statusdaq.sh > ${OUT1}147 while [ ! -f "${tmppublicpath}/statusdaq.finished" ]; do148 sleep 30149 done150 $RM ${tmppublicpath}/statusdaq.finished148 # OUT1=${publicpath}/baodaqstatus-${curtag}.txt 149 # $ECHO "We should bring the DAQ status more up to date, this take 1 or 2sec..." 150 # $RM -f ${tmppublicpath}/statusdaq.finished 151 # ${scriptpath}/statusdaq.sh > ${OUT1} 152 # while [ ! -f "${tmppublicpath}/statusdaq.finished" ]; do 153 # sleep 30 154 # done 155 # $RM ${tmppublicpath}/statusdaq.finished 151 156 #protect against remove/rewriting 152 $CHMOD -v 444 ${OUT1}153 fi157 # $CHMOD -v 444 ${OUT1} 158 # fi 154 159 # 155 160 # look if the fits file of the gains already exists -
BAORadio/AmasNancay/getscafiles.sh
r516 r540 22 22 $ECHO "usage: ${script 23 23 Name} <source:ex. Abell85> <date:YYYYMMDD>" 24 touch ${tmppublicpath}/getscafiles.finished 24 #JEC 29/9/11 avoid finished stuff 25 # touch ${tmppublicpath}/getscafiles.finished 25 26 exit 0 26 27 fi … … 52 53 else 53 54 $ECHO "FATAL (${scriptName}): environment is ${ENVIRONMENT} not allowed" 54 touch ${tmppublicpath}/getscafiles.finished 55 #JEC 29/9/11 avoid finished stuff 56 # touch ${tmppublicpath}/getscafiles.finished 55 57 exit 1 56 58 fi … … 65 67 scriptpath="/afs/in2p3.fr/home/c/campagne/private/work/AmasNancay" 66 68 69 #JEC 1/10/11 Use generic baodaqstatus name 67 70 #look if the run exists 68 tag=`${DATE} +%F` 69 OUT1=${publicpath}/baodaqstatus-${tag}.txt 71 #tag=`${DATE} +%F` 72 #OUT1=${publicpath}/baodaqstatus-${tag}.txt 73 OUT1=${publicpath}/baodaqstatus-current.txt 74 70 75 if [ ! -e ${OUT1} -o ! -r ${OUT1} ]; then 71 76 # $ECHO "We should bring the DAQ status more up to date, this take 1 or 2sec..." … … 79 84 # $RM ${tmppublicpath}/statusdaq.finished 80 85 $ECHO "FATAL (${scriptName}): ${OUT1} is missing or not readable..." 81 touch ${tmppublicpath}/getscafiles.finished 86 #JEC 29/9/11 avoid finished stuff 87 # touch ${tmppublicpath}/getscafiles.finished 82 88 exit 1 83 89 fi … … 87 93 if [ "<${nfiles}>" = "<>" ]; then 88 94 $ECHO "FATAL (${scriptName}): No run found for <${sourceRadio}> and date <${dateDAQ}>" 89 touch ${tmppublicpath}/getscafiles.finished 95 #JEC 29/9/11 avoid finished stuff 96 # touch ${tmppublicpath}/getscafiles.finished 90 97 exit 1 91 98 fi … … 94 101 #Look if the run should/can be prepared wrt SCA file transformation 95 102 OUT2=./scaStatus.$$ 96 $RM -f ${tmppublicpath}/scaextractor.finished 103 #JEC 29/9/11 avoid finished stuff 104 #$RM -f ${tmppublicpath}/scaextractor.finished 97 105 ${scriptpath}/scaextractor.sh $sourceRadio > ${OUT2} 2>&1 98 while [ ! -f "${tmppublicpath}/scaextractor.finished" ]; do99 $ECHO "INFO (${scriptName}); waiting for ${tmppublicpath}/scaextractor.finished"100 date +%T101 sleep 30102 done103 $RM ${tmppublicpath}/scaextractor.finished106 #while [ ! -f "${tmppublicpath}/scaextractor.finished" ]; do 107 # $ECHO "INFO (${scriptName}); waiting for ${tmppublicpath}/scaextractor.finished" 108 # date +%T 109 # sleep 30 110 #done 111 #$RM ${tmppublicpath}/scaextractor.finished 104 112 105 113 … … 108 116 if [ "<$status>" != "<>" ]; then 109 117 $ECHO "FATAL (${scriptName}): connot proceed further with $sourceRadio $dateDAQ" 110 touch ${tmppublicpath}/getscafiles.finished 118 #JEC 29/9/11 avoid finished stuff 119 # touch ${tmppublicpath}/getscafiles.finished 111 120 exit 1 112 121 fi … … 144 153 $ECHO "FATAL (${scriptName}): error while iget:" 145 154 $ECHO $igetStatus 146 touch ${tmppublicpath}/getscafiles.finished 155 #JEC 29/9/11 avoid finished stuff 156 # touch ${tmppublicpath}/getscafiles.finished 147 157 exit 1 148 158 fi -
BAORadio/AmasNancay/getsignalfiles.sh
r516 r540 24 24 if [ ! $# = 4 ]; then 25 25 $ECHO "usage: ${scriptName} <source:ex. Abell85> <date:YYYYMMDD> first last" 26 touch ${tmppublicpath}/getsignalfiles.finished 26 #JEC 29/9/11 avoid finished stuff 27 # touch ${tmppublicpath}/getsignalfiles.finished 27 28 exit 0 28 29 fi … … 52 53 else 53 54 $ECHO "FATAL (${scriptName}): environment is ${ENVIRONMENT} not allowed" 54 touch ${tmppublicpath}/getsignalfiles.finished 55 #JEC 29/9/11 avoid finished stuff 56 # touch ${tmppublicpath}/getsignalfiles.finished 55 57 exit 1 56 58 fi … … 66 68 67 69 #determine the sequence of signal files to download 70 #JEC 1/10/11 Use generic baodaqstatus name 68 71 #get the daq current irod status 69 tag=`${DATE} +%F` 70 OUT1=${publicpath}/baodaqstatus-${tag}.txt 72 #tag=`${DATE} +%F` 73 #OUT1=${publicpath}/baodaqstatus-${tag}.txt 74 OUT1=${publicpath}/baodaqstatus-current.txt 71 75 72 76 if [ ! -e ${OUT1} -o ! -r ${OUT1} ]; then … … 82 86 # $RM ${tmppublicpath}/statusdaq.finished 83 87 $ECHO "FATAL (${scriptName}): ${OUT1} is missing or not readable..." 84 touch ${tmppublicpath}/getsignalfiles.finished 88 #JEC 29/9/11 avoid finished stuff 89 # touch ${tmppublicpath}/getsignalfiles.finished 85 90 exit 1 86 91 fi … … 90 95 $ECHO "FATAL (${scriptName}): No run found for <${sourceRadio}> and date <${dateDAQ}>" 91 96 $CAT $OUT1 92 touch ${tmppublicpath}/getsignalfiles.finished 97 #JEC 29/9/11 avoid finished stuff 98 # touch ${tmppublicpath}/getsignalfiles.finished 93 99 exit 1 94 100 fi … … 98 104 if [ ${firstFile} -gt ${nfiles} ]; then 99 105 $ECHO "FATAL (${scriptName}): ${firstFile} > ${nfiles}" 100 touch ${tmppublicpath}/getsignalfiles.finished 106 #JEC 29/9/11 avoid finished stuff 107 # touch ${tmppublicpath}/getsignalfiles.finished 101 108 exit 1 102 109 fi … … 106 113 if [ ${lastFile} -gt ${nfiles} ]; then 107 114 $ECHO "FATAL (${scriptName}): ${lastFile} > ${nfiles}" 108 touch ${tmppublicpath}/getsignalfiles.finished 115 #JEC 29/9/11 avoid finished stuff 116 # touch ${tmppublicpath}/getsignalfiles.finished 109 117 exit 1 110 118 fi … … 112 120 if [ ${firstFile} -gt ${lastFile} ]; then 113 121 $ECHO "FATAL (${scriptName}): ${firstFile} > ${lastFile}" 114 touch ${tmppublicpath}/getsignalfiles.finished 122 #JEC 29/9/11 avoid finished stuff 123 # touch ${tmppublicpath}/getsignalfiles.finished 115 124 exit 1 116 125 fi … … 134 143 $ECHO "FATAL (${scriptName}): error while iget:" 135 144 $ECHO $igetStatus 136 touch ${tmppublicpath}/getsignalfiles.finished 145 #JEC 29/9/11 avoid finished stuff 146 # touch ${tmppublicpath}/getsignalfiles.finished 137 147 exit 1 138 148 fi … … 142 152 $ECHO "FATAL (${scriptName}): error while iget:" 143 153 $ECHO $igetStatus 144 touch ${tmppublicpath}/getsignalfiles.finished 154 #JEC 29/9/11 avoid finished stuff 155 # touch ${tmppublicpath}/getsignalfiles.finished 145 156 exit 1 146 157 fi … … 148 159 done 149 160 150 touch ${tmppublicpath}/getsignalfiles.finished 161 #JEC 29/9/11 avoid finished stuff 162 #touch ${tmppublicpath}/getsignalfiles.finished 151 163 exit 0 -
BAORadio/AmasNancay/hdrfitsextractor.sh
r510 r540 48 48 49 49 50 #JEC 1/10/11 Use generic baodaqstatus name 50 51 #get the daq current irod status 51 tag=`${DATE} +%F` 52 OUT1=${publicpath}/baodaqstatus-${tag}.txt 52 #tag=`${DATE} +%F` 53 #OUT1=${publicpath}/baodaqstatus-${tag}.txt 54 OUT1=${publicpath}/baodaqstatus-current.txt 53 55 54 if [ ! -e ${OUT1} ]; then55 $ECHO " We should bring the DAQ status more up to date, this take 1 or 2sec..."56 ${scriptpath}/statusdaq.sh > ${OUT1}56 if [ ! -e ${OUT1} -o ! -r ${OUT1} ]; then 57 $ECHO "FATAL (${scriptName}): ${OUT1} has a problem" 58 exit 1 57 59 fi 60 61 #if [ ! -e ${OUT1} ]; then 62 # $ECHO "We should bring the DAQ status more up to date, this take 1 or 2sec..." 63 # ${scriptpath}/statusdaq.sh > ${OUT1} 64 #fi 58 65 59 66 if [ ! "<${sourceRadio}>" = "<>" ]; then -
BAORadio/AmasNancay/makefile
r507 r540 7 7 PKGOLIST = 8 8 9 EXELIST = $(EXE)analyse 9 EXELIST = $(EXE)analyse $(EXE)mergeRawOnOff 10 10 11 EXEOLIST = $(EXE)analyse.o 11 EXEOLIST = $(EXE)analyse.o $(EXE)mergeRawOnOff.o 12 12 13 13 14 all : analyse 14 all : analyse mergeRawOnOff 15 15 16 16 clean : … … 29 29 $(CXXCOMPILE) -c -o $(OBJ)analyse.o analyse.cc 30 30 31 mergeRawOnOff : $(EXE)mergeRawOnOff 32 echo '---mergeRawOnOff made' 33 34 $(EXE)mergeRawOnOff : $(OBJ)mergeRawOnOff.o 35 $(CXXLINK) -o $(EXE)mergeRawOnOff $(OBJ)mergeRawOnOff.o $(SOPHYAALLSLBLIST) 36 37 $(OBJ)mergeRawOnOff.o : mergeRawOnOff.cc 38 $(CXXCOMPILE) -c -o $(OBJ)mergeRawOnOff.o mergeRawOnOff.cc 39 -
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 -
BAORadio/AmasNancay/proc_rawonoff.sh
r535 r540 126 126 $ECHO "DEBUG (${scriptName}): START call getscafiles.sh ${sourceRadio} ${dateSelected}" 127 127 OUT1=./getScaStatus.$$ 128 $RM -f ${tmppublicpath}/getscafiles.finished 128 #JEC 29/9/11 avoid finished stuff 129 #$RM -f ${tmppublicpath}/getscafiles.finished 129 130 ${scriptpath}/getscafiles.sh ${sourceRadio} ${dateSelected} > ${OUT1} 2>&1 130 while [ ! -f "${tmppublicpath}/getscafiles.finished" ]; do131 $ECHO "INFO (${scriptName}): waiting for ${tmppublicpath}/getscafiles.finished"132 date +%T133 sleep 30134 done135 $RM -f ${tmppublicpath}/getscafiles.finished131 #while [ ! -f "${tmppublicpath}/getscafiles.finished" ]; do 132 # $ECHO "INFO (${scriptName}): waiting for ${tmppublicpath}/getscafiles.finished" 133 # date +%T 134 # sleep 30 135 #done 136 #$RM -f ${tmppublicpath}/getscafiles.finished 136 137 $ECHO "DEBUG (${scriptName}): END" 137 138 … … 144 145 $CAT ${OUT1} 145 146 $ECHO "DEBUG (${scriptName}): END" 146 touch ${tmppublicpath}/proc_script.finished 147 #JEC 29/9/11 avoid finished stuff 148 # touch ${tmppublicpath}/proc_script.finished 147 149 exit 1 148 150 fi … … 155 157 $CAT ${OUT1} 156 158 $ECHO "DEBUG (${scriptName}): END" 157 touch ${tmppublicpath}/proc_script.finished 159 #JEC 29/9/11 avoid finished stuff 160 # touch ${tmppublicpath}/proc_script.finished 158 161 exit 1 159 162 fi … … 189 192 $ECHO "FATAL (${scriptName}): error while iget:" 190 193 $ECHO $igetStatus 191 touch ${tmppublicpath}/proc_script.finished 194 #JEC 29/9/11 avoid finished stuff 195 # touch ${tmppublicpath}/proc_script.finished 192 196 exit 1 193 197 fi … … 200 204 #Get list of file to process 201 205 headerFileSelected=./selectSignal.$$ 202 $RM -f ${tmppublicpath}/select.finished 206 #JEC 29/9/11 avoid finished stuff 207 #$RM -f ${tmppublicpath}/select.finished 203 208 ${scriptpath}/select.sh ${scaFileSummarized} ${dirFiberfile} ${typeofproc} | $GREP "^#[0-9]" | $SED "s/^#//" > $headerFileSelected 204 while [ ! -f "${tmppublicpath}/select.finished" ]; do205 $ECHO "INFO (${scriptName}): waiting for ${tmppublicpath}/select.finished"206 date +%T207 sleep 30208 done209 $RM ${tmppublicpath}/select.finished209 #while [ ! -f "${tmppublicpath}/select.finished" ]; do 210 # $ECHO "INFO (${scriptName}): waiting for ${tmppublicpath}/select.finished" 211 # date +%T 212 # sleep 30 213 #done 214 #$RM ${tmppublicpath}/select.finished 210 215 # 211 216 $ECHO "DEBUG (${scriptName}): END" … … 229 234 if [ ${#cycleArray[*]} -eq 0 -o ${#filesArray[*]} -eq 0 ]; then 230 235 $ECHO "FATAL (${scriptName}): no header file selected (${#cycleArray[*]}, ${#filesArray[*]})" 231 touch ${tmppublicpath}/proc_script.finished 236 #JEC 29/9/11 avoid finished stuff 237 # touch ${tmppublicpath}/proc_script.finished 232 238 exit 1 233 239 else … … 326 332 $ECHO "FATAL (${scriptName}): type of processing" 327 333 usage 328 touch ${tmppublicpath}/proc_script.finished 334 #JEC 29/9/11 avoid finished stuff 335 # touch ${tmppublicpath}/proc_script.finished 329 336 exit 1 330 337 ;; … … 387 394 if [ ! -e $prg ]; then 388 395 $ECHO "FATAL (${scriptName}): $prg not found" 389 touch ${tmppublicpath}/proc_script.finished 396 #JEC 29/9/11 avoid finished stuff 397 # touch ${tmppublicpath}/proc_script.finished 390 398 exit 1 391 399 fi … … 417 425 $ECHO "FATAL (${scriptName}): error while iget:" 418 426 $ECHO $igetStatus 419 touch ${tmppublicpath}/${jobBatchName}.finished 427 #JEC 29/9/11 avoid finished stuff 428 # touch ${tmppublicpath}/${jobBatchName}.finished 420 429 exit 1 421 430 fi … … 426 435 for ((i=${firstCycleId};i<${lastp1CycleId};i++)); do 427 436 # 437 438 #### 439 # Check daq status 440 #JEC 1/10/11 Use generic baodaqstatus name 441 #### 442 #get the daq current irod status 443 #tag=`${DATE} +%F` 444 #OUT1=${publicpath}/baodaqstatus-${tag}.txt 445 OUT1=${publicpath}/baodaqstatus-current.txt 446 447 if [ ! -e ${OUT1} -o ! -r ${OUT1} ]; then 448 $ECHO "FATAL (${scriptName}): ${OUT1} has a problem" 449 exit 1 450 # $ECHO "We should bring the DAQ status more up to date, this take 1 or 2min..." 451 #JEC 29/9/11 avoid finished stuff 452 # $RM -f ${tmppublicpath}/statusdaq.finished 453 # ${scriptpath}/statusdaq.sh > ${OUT1} 454 # while [ ! -f "${tmppublicpath}/statusdaq.finished" ]; do 455 # sleep 30 456 # done 457 # $RM ${tmppublicpath}/statusdaq.finished 458 #protect against remove/rewriting 459 # $CHMOD -v 444 ${OUT1} 460 fi 461 428 462 #time window selection 429 463 tmproc="-tmproc ${timeArray[${i}]},${timeDuration}" … … 455 489 #get signals files 456 490 OUT3=./getsignals.$$ 457 $RM -f ${tmppublicpath}/getsignalfiles.finished 491 #JEC 29/9/11 avoid finished stuff 492 # $RM -f ${tmppublicpath}/getsignalfiles.finished 458 493 ${scriptpath}/getsignalfiles.sh ${sourceRadio} ${dateSelected} ${firstFile} ${lastFile} > ${OUT3} 2>&1 459 while [ ! -f "${tmppublicpath}/getsignalfiles.finished" ]; do460 $ECHO "INFO (${scriptName}): waiting for ${tmppublicpath}/getsignalfiles.finished"461 date +%T462 sleep 30463 done464 $RM ${tmppublicpath}/getsignalfiles.finished494 # while [ ! -f "${tmppublicpath}/getsignalfiles.finished" ]; do 495 # $ECHO "INFO (${scriptName}): waiting for ${tmppublicpath}/getsignalfiles.finished" 496 # date +%T 497 # sleep 30 498 # done 499 # $RM ${tmppublicpath}/getsignalfiles.finished 465 500 466 501 getSignals=`$GREP "^FATAL" ${OUT3}` … … 468 503 $ECHO "FATAL (${scriptName}): error while get signals" 469 504 $ECHO $getSignals 470 touch ${tmppublicpath}/${jobBatchName}.finished 505 #JEC 29/9/11 avoid finished stuff 506 # touch ${tmppublicpath}/${jobBatchName}.finished 471 507 exit 1 472 508 fi … … 511 547 $ECHO "DEBUG (${scriptName}): END loop on cycles" 512 548 # 513 touch ${tmppublicpath}/proc_script.finished 549 #JEC 29/9/11 avoid finished stuff 550 #touch ${tmppublicpath}/proc_script.finished 514 551 exit 0 -
BAORadio/AmasNancay/rawonoffmaker.sh
r530 r540 101 101 102 102 #get the daq current irod status 103 tag=`${DATE} +%F` 104 OUT1=${publicpath}/baodaqstatus-${tag}.txt 103 #tag=`${DATE} +%F` 104 #OUT1=${publicpath}/baodaqstatus-${tag}.txt 105 ####JEC 1/10/11 tag=`${DATE} +%F` 106 #Use generic baodaqstatus name 107 OUT1=${publicpath}/baodaqstatus-current.txt 105 108 106 109 if [ ! -e ${OUT1} -o ! -r ${OUT1} ]; then 107 $ECHO "We should bring the DAQ status more up to date, this take 1 or 2sec..." 108 $RM -f ${tmppublicpath}/statusdaq.finished 109 ${scriptpath}/statusdaq.sh > ${OUT1} 110 while [ ! -f "${tmppublicpath}/statusdaq.finished" ]; do 111 sleep 30 112 done 113 $RM ${tmppublicpath}/statusdaq.finished 110 $ECHO "FATAL (${scriptName}): ${OUT1} has a problem" 111 exit 1 112 #JEC 29/9/11 avoid finished stuff 113 # $RM -f ${tmppublicpath}/statusdaq.finished 114 # ${scriptpath}/statusdaq.sh > ${OUT1} 115 # while [ ! -f "${tmppublicpath}/statusdaq.finished" ]; do 116 # sleep 30 117 # done 118 # $RM ${tmppublicpath}/statusdaq.finished 114 119 #protect against remove/rewriting 115 $CHMOD -v 444 ${OUT1}120 # $CHMOD -v 444 ${OUT1} 116 121 fi 122 123 117 124 118 125 … … 140 147 $LS -lrt 141 148 142 149 #JEC 1/10/11 Use generic baodaqstatus name 143 150 #Look if the date has changed since beginning of the job! 144 curtag=`${DATE} +%F`145 if [ "<${curtag}>" != "<${tag}>" ]; then146 tag=${curtag}151 # curtag=`${DATE} +%F` 152 # if [ "<${curtag}>" != "<${tag}>" ]; then 153 # tag=${curtag} 147 154 #it is necessary to update the daq status as the day has changed during the processing... (batch can take a long time...) 148 OUT1=${publicpath}/baodaqstatus-${curtag}.txt149 150 $RM -f ${tmppublicpath}/statusdaq.finished151 ${scriptpath}/statusdaq.sh > ${OUT1}152 while [ ! -f "${tmppublicpath}/statusdaq.finished" ]; do153 sleep 30154 done155 $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 156 163 #protect against remove/rewriting 157 $CHMOD -v 444 ${OUT1}158 fi164 # $CHMOD -v 444 ${OUT1} 165 # fi 159 166 # 160 167 # look if the gain & calibration files exist -
BAORadio/AmasNancay/sca.sh
r516 r540 43 43 else 44 44 $ECHO "FATAL (${scriptName}): environment is ${ENVIRONMENT} not allowed" 45 touch ${tmppublicpath}/sca.finished 45 #JEC 29/9/11 avoid finished stuff 46 # touch ${tmppublicpath}/sca.finished 46 47 exit 1 47 48 fi … … 52 53 then 53 54 $ECHO "FATAL (${scriptName}): usage: ./sca.sh <file>" 54 touch ${tmppublicpath}/sca.finished 55 #JEC 29/9/11 avoid finished stuff 56 # touch ${tmppublicpath}/sca.finished 55 57 exit 1 56 58 fi … … 61 63 then 62 64 $ECHO "FATAL (${scriptName}): $fullfile not found: FATAL" 63 touch ${tmppublicpath}/sca.finished 65 #JEC 29/9/11 avoid finished stuff 66 # touch ${tmppublicpath}/sca.finished 64 67 exit 1 65 68 fi … … 171 174 $RM $OUT2 172 175 173 touch ${tmppublicpath}/sca.finished 176 #JEC 29/9/11 avoid finished stuff 177 #touch ${tmppublicpath}/sca.finished 174 178 exit 0 175 179 -
BAORadio/AmasNancay/scaIsOk.sh
r513 r540 55 55 56 56 57 #JEC 1/10/11 Use generic baodaqstatus name 57 58 #get the daq current irod status 58 tag=`${DATE} +%F` 59 OUT1=${publicpath}/baodaqstatus-${tag}.txt 60 OUT1=${publicpath}/baodaqstatus-2011-09-11.txt 59 #tag=`${DATE} +%F` 60 #OUT1=${publicpath}/baodaqstatus-${tag}.txt 61 #OUT1=${publicpath}/baodaqstatus-2011-09-11.txt 62 OUT1=${publicpath}/baodaqstatus-current.txt 63 61 64 62 65 if [ ! -e ${OUT1} -o ! -r ${OUT1} ]; then 63 66 $ECHO "FATAL (${scriptName}): ${OUT1} is missing or not readable..." 64 touch ${tmppublicpath}/scaIsOk.finished67 # touch ${tmppublicpath}/scaIsOk.finished 65 68 exit 1 66 69 fi -
BAORadio/AmasNancay/scaextractor.sh
r516 r540 40 40 else 41 41 $ECHO "FATAL (${scriptName}): environment is ${ENVIRONMENT} not allowed" 42 touch ${tmppublicpath}/scaextractor.finished 42 #JEC 29/9/11 avoid finished stuff 43 # touch ${tmppublicpath}/scaextractor.finished 43 44 exit 1 44 45 fi … … 55 56 56 57 58 #JEC 1/10/11 Use generic baodaqstatus name 57 59 #get the daq current irod status 58 tag=`${DATE} +%F` 59 OUT1=${publicpath}/baodaqstatus-${tag}.txt 60 #tag=`${DATE} +%F` 61 #OUT1=${publicpath}/baodaqstatus-${tag}.txt 62 OUT1=${publicpath}/baodaqstatus-current.txt 63 60 64 61 65 if [ ! -e ${OUT1} -o ! -r ${OUT1} ]; then 66 $ECHO "FATAL (${scriptName}): ${OUT1} has a problem" 67 exit 1 62 68 # $ECHO "We should bring the DAQ status more up to date, this take 1 or 2sec..." 63 69 # $RM -f ${tmppublicpath}/statusdaq.finished … … 69 75 # done 70 76 # $RM ${tmppublicpath}/statusdaq.finished 71 $ECHO "FATAL (${scriptName}): ${OUT1} is missing or not readable..." 72 touch ${tmppublicpath}/scaextractor.finished 73 exit 1 77 # $ECHO "FATAL (${scriptName}): ${OUT1} is missing or not readable..." 78 #JEC 29/9/11 avoid finished stuff 79 # touch ${tmppublicpath}/scaextractor.finished 80 # exit 1 74 81 fi 75 82 … … 106 113 iget -r -f -v -K ${i}/${scafile} ${iojobpath} 107 114 #extract summary (sum extension) 115 #JEC 29/9/11 avoid finished stuff 108 116 $RM -f ${tmppublicpath}/sca.finished 109 117 ${scriptpath}/sca.sh ${scafile} 110 while [ ! -e "${tmppublicpath}/sca.finished" ]; do111 $ECHO "INFO (${scriptName}); waiting for ${tmppublicpath}/sca.finished"112 date +%T113 sleep 30114 done118 # while [ ! -e "${tmppublicpath}/sca.finished" ]; do 119 # $ECHO "INFO (${scriptName}); waiting for ${tmppublicpath}/sca.finished" 120 # date +%T 121 # sleep 30 122 # done 115 123 $ECHO "INFO (${scriptName}): sca.sh has finished" 116 $RM ${tmppublicpath}/sca.finished124 # $RM ${tmppublicpath}/sca.finished 117 125 #TODO see if there is errors... 118 126 scaFileName=$(basename $scafile) 119 127 scaFileName=${scaFileName%.*} 120 128 #transform the date (sum.trans extension) 121 $RM -f ${tmppublicpath}/transdate.finished 129 #JEC 29/9/11 avoid finished stuff 130 # $RM -f ${tmppublicpath}/transdate.finished 122 131 ${scriptpath}/transdate.sh ${scaFileName}.sum 123 while [ ! -e "${tmppublicpath}/transdate.finished" ]; do124 $ECHO "INFO (${scriptName}); waiting for ${tmppublicpath}/transdate.finished"125 date +%T126 sleep 30127 done132 # while [ ! -e "${tmppublicpath}/transdate.finished" ]; do 133 # $ECHO "INFO (${scriptName}); waiting for ${tmppublicpath}/transdate.finished" 134 # date +%T 135 # sleep 30 136 # done 128 137 $ECHO "INFO (${scriptName}): transdate.sh has finished" 129 $RM ${tmppublicpath}/transdate.finished138 # $RM ${tmppublicpath}/transdate.finished 130 139 #TODO see if there is errors... 131 140 #put back into Irod … … 142 151 143 152 144 touch ${tmppublicpath}/scaextractor.finished 153 #JEC 29/9/11 avoid finished stuff 154 #touch ${tmppublicpath}/scaextractor.finished 145 155 exit 0 -
BAORadio/AmasNancay/select.sh
r516 r540 26 26 if [ ! $# = 3 ]; then 27 27 $ECHO "usage: ${scriptName} <scaXYZ.sum> <signalXYZDirectory> <type of phase:ON|OFF|CALIBON|CALIBOFF>" 28 touch ${tmppublicpath}/select.finished 28 #JEC 29/9/11 avoid finished stuff 29 # touch ${tmppublicpath}/select.finished 29 30 exit 0 30 31 fi … … 48 49 if [ ! -e $inScaFile ]; then 49 50 $ECHO "FATAL (${scriptName}): $inScaFile not found" 50 touch ${tmppublicpath}/select.finished 51 #JEC 29/9/11 avoid finished stuff 52 # touch ${tmppublicpath}/select.finished 51 53 exit 1 52 54 fi … … 69 71 *) 70 72 $ECHO "FATAL (${scriptName}): use ON|OFF|CALIBON|CALIBOFF phase tags." 71 touch ${tmppublicpath}/select.finished 73 #JEC 29/9/11 avoid finished stuff 74 # touch ${tmppublicpath}/select.finished 72 75 exit 1 73 76 ;; … … 224 227 $RM $OUT2 225 228 226 touch ${tmppublicpath}/select.finished 229 #JEC 29/9/11 avoid finished stuff 230 #touch ${tmppublicpath}/select.finished 227 231 exit 0 -
BAORadio/AmasNancay/statusdaq.sh
r516 r540 38 38 else 39 39 $ECHO "FATAL (${scriptName}): environment is ${ENVIRONMENT} not allowed" 40 touch ${tmppublicpath}/statusdaq.finished 40 #JEC 29/9/11 avoid finished stuff 41 # touch ${tmppublicpath}/statusdaq.finished 41 42 exit 1 42 43 fi … … 85 86 done 86 87 87 touch ${tmppublicpath}/statusdaq.finished 88 #JEC 29/9/11 avoid finished stuff 89 #touch ${tmppublicpath}/statusdaq.finished 88 90 exit 0 -
BAORadio/AmasNancay/submit2bqs-anarawonoffmaker.sh
r530 r540 18 18 simulationMode="-sim On" 19 19 $ECHO "INFO ${scriptName} running in SIMUL mode";; 20 20 -h) 21 21 echo >&2 \ 22 22 "usage: $0 -src souce -date YYYYMMDD [-freq freq in MHz (default ${freqBAOCalib})] [-sim to trig simulation mode]" -
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 -
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 -
BAORadio/AmasNancay/transdate.sh
r516 r540 33 33 else 34 34 $ECHO "FATAL (${scriptName}): environment is ${ENVIRONMENT} not allowed" 35 touch ${tmppublicpath}/transdate.finished 35 #JEC 29/9/11 avoid finished stuff 36 # touch ${tmppublicpath}/transdate.finished 36 37 exit 1 37 38 fi … … 40 41 if [ ! $# = 1 ]; then 41 42 $ECHO "FATAL (${scriptName}) usage: ./transdate.sh <scaXYZ.sum>" 42 touch ${tmppublicpath}/transdate.finished 43 #JEC 29/9/11 avoid finished stuff 44 # touch ${tmppublicpath}/transdate.finished 43 45 exit 0 44 46 fi … … 48 50 if [ ! -e $inScaFile ]; then 49 51 $ECHO "FATAL (${scriptName}): $inScaFile not found" 50 touch ${tmppublicpath}/transdate.finished 52 #JEC 29/9/11 avoid finished stuff 53 # touch ${tmppublicpath}/transdate.finished 51 54 exit 1 52 55 fi … … 76 79 ' $inScaFile >> $inScaFile.trans 77 80 78 touch ${tmppublicpath}/transdate.finished 81 #JEC 29/9/11 avoid finished stuff 82 #touch ${tmppublicpath}/transdate.finished 79 83 exit 0
Note: See TracChangeset
for help on using the changeset viewer.