Changeset 7954
- Timestamp:
- 08/29/06 09:08:55 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7953 r7954 18 18 19 19 -*-*- END OF LINE -*-*- 20 2006/08/29 Daniela Dorner 21 22 * datacenter/scripts/buildsequenceentries: 23 - fixed logpath 24 25 * datacenter/scripts/fillcallisto, datacenter/scripts/fillganymed, 26 datacenter/scripts/fillstar: 27 - changed logpath 28 29 * datacenter/scripts/insertdatasets: 30 - improved logging 31 32 * datacenter/scripts/sourcefile: 33 - improved logging in setstatus 34 - implemented alias intgrep 35 36 * datacenter/scripts/buildsequenceentries, 37 datacenter/scripts/checkfilesforsequenceavail, 38 datacenter/scripts/checkstardone, datacenter/scripts/copyscript, 39 datacenter/scripts/dodatacheck, datacenter/scripts/doexclusions, 40 datacenter/scripts/doqualityplots, datacenter/scripts/filesondisk, 41 datacenter/scripts/fillcallisto, datacenter/scripts/fillganymed, 42 datacenter/scripts/fillstar, datacenter/scripts/insertdatasets, 43 datacenter/scripts/insertsequences, 44 datacenter/scripts/makecallistolinks, 45 datacenter/scripts/writesequencefiles: 46 - implemented usage of alias intgrep 47 48 49 20 50 2006/08/28 Thomas Bretz 21 51 -
trunk/MagicSoft/Mars/datacenter/scripts/buildsequenceentries
r7944 r7954 73 73 buildsequentriespath=$logpath/$program/$year2 74 74 makedir $buildsequentriespath >> $scriptlog 2>&1 75 buildsequen ceentrieslog=$buildsequentriespath/buildsequenceentries-$date.log75 buildsequentrieslog=$buildsequentriespath/buildsequenceentries-$date.log 76 76 77 77 setstatus "start" >> $scriptlog 2>&1 78 78 79 check1=`root -q -b $macrospath/buildsequenceentries.C+\("\"$date\""\,"\"$datapath\""\,"\"$sequpath\""\,kFALSE\) | tee $buildseque entrieslog | grep int | sed -e 's/(int)//'`79 check1=`root -q -b $macrospath/buildsequenceentries.C+\("\"$date\""\,"\"$datapath\""\,"\"$sequpath\""\,kFALSE\) | tee $buildsequentrieslog | intgrep` 80 80 81 81 case $check1 in -
trunk/MagicSoft/Mars/datacenter/scripts/checkfilesforsequenceavail
r7944 r7954 78 78 setstatus "start" >> $scriptlog 2>&1 79 79 80 check1=`root -q -b $macrospath/checkfileavail.C+\(\""$sequencefile\""\) | tee $checkfileavaillog | grep int | sed -e 's/(int)//'`80 check1=`root -q -b $macrospath/checkfileavail.C+\(\""$sequencefile\""\) | tee $checkfileavaillog | intgrep` 81 81 82 82 case $check1 in -
trunk/MagicSoft/Mars/datacenter/scripts/checkstardone
r7944 r7954 91 91 printprocesslog "INFO check availability for sequence $sequence" 92 92 93 check1=`root -q -b $macrospath/checkstardone.C+\(\""$sequence\""\) | tee $outpath/checkstardone-$sequence.log | grep int | sed -e 's/(int)//'`93 check1=`root -q -b $macrospath/checkstardone.C+\(\""$sequence\""\) | tee $outpath/checkstardone-$sequence.log | intgrep` 94 94 95 95 case $check1 in -
trunk/MagicSoft/Mars/datacenter/scripts/copyscript
r7944 r7954 147 147 then 148 148 echo "found rbk-file $filename" >> $scriptlog 2>&1 149 checkfillrbk=`root -q -b $macrospath/filldotrbk.C+\("\"$file\""\,kFALSE\) | tee $copylogpath/filldotrbk-$filename-log.txt | grep int | sed -e 's/(int)//'` 149 150 checkfillrbk=`root -q -b $macrospath/filldotrbk.C+\("\"$file\""\,kFALSE\) | tee $copylogpath/filldotrbk-$filename-log.txt | intgrep` 151 150 152 case $checkfillrbk in 151 153 1) echo " checkfillrbk=$checkfillrbk -> everything ok " >> $scriptlog 2>&1 … … 158 160 esac 159 161 fi 162 160 163 if echo $file | grep 'CC_.*.run' >> $scriptlog 2>&1 && ! echo $file | grep .run.html >> $scriptlog 2>&1 161 164 then 162 165 echo "found run-file $filename" >> $scriptlog 2>&1 163 checkfillrun=`root -q -b $macrospath/filldotrun.C+\("\"$file\""\,kFALSE\) | tee $copylogpath/filldotrun-$filename-log.txt | grep int | sed -e 's/(int)//'` 166 167 checkfillrun=`root -q -b $macrospath/filldotrun.C+\("\"$file\""\,kFALSE\) | tee $copylogpath/filldotrun-$filename-log.txt | intgrep` 168 164 169 case $checkfillrun in 165 170 1) echo " checkfillrun=$checkfillrun -> everything ok " >> $scriptlog 2>&1 166 171 echo " -> insert date in SequenceBuildStatus for $date" >> $scriptlog 2>&1 167 172 168 checkinsertdate=`root -q -b $macrospath/insertdate.C+\("\"$date\""\) | tee $copylogpath/insertdate-$date-log.txt | grep int | sed -e 's/(int)//'` 173 checkinsertdate=`root -q -b $macrospath/insertdate.C+\("\"$date\""\) | tee $copylogpath/insertdate-$date-log.txt | intgrep` 174 169 175 case $checkinsertdate in 170 176 1) echo "date inserted" >> $scriptlog 2>&1 ;; -
trunk/MagicSoft/Mars/datacenter/scripts/dodatacheck
r7944 r7954 79 79 filldotrawlogfile=$filldotrawpath/filldotraw-$no2.log 80 80 81 check1=`root -q -b $macrospath/filldotraw.C+\("\"$rawfile\""\,kFALSE\) | tee $filldotrawlogfile | grep int | sed -e 's/.*(int)//'`81 check1=`root -q -b $macrospath/filldotraw.C+\("\"$rawfile\""\,kFALSE\) | tee $filldotrawlogfile | intgrep` 82 82 83 83 case $check1 in … … 132 132 133 133 echo "doing fillsinope..." >> $scriptlog 2>&1 134 check3=`root -q -b $macrospath/fillsinope.C+\($run\,"\"$datapath\""\,kFALSE\) | tee $fillsinopelogfile | grep int | sed -e 's/.*(int)//'`134 check3=`root -q -b $macrospath/fillsinope.C+\($run\,"\"$datapath\""\,kFALSE\) | tee $fillsinopelogfile | intgrep` 135 135 136 136 case $check3 in … … 158 158 resetlog=$resetlogpath/reset-exclusions-$no2-$date2.log 159 159 160 check5=`root -q -b $macrospath/resetcolumn.C+\("\"fExclusionsDone\""\,"\"SequenceBuildStatus\""\,"\"$date2\""\,"\"$date2\""\,kFALSE\) | tee $resetlog | grep int | sed -e 's/(int)//'`160 check5=`root -q -b $macrospath/resetcolumn.C+\("\"fExclusionsDone\""\,"\"SequenceBuildStatus\""\,"\"$date2\""\,"\"$date2\""\,kFALSE\) | tee $resetlog | intgrep` 161 161 case $check5 in 162 162 1) echo " check5=$check5 -> everything ok, fExclusions have been reset " >> $scriptlog 2>&1 -
trunk/MagicSoft/Mars/datacenter/scripts/doexclusions
r7944 r7954 77 77 setstatus "start" >> $scriptlog 2>&1 78 78 79 check1=`root -q -b $macrospath/doexclusions.C+\("\"$date\""\) | tee $doexclusionslog | grep int | sed -e 's/(int)//'`79 check1=`root -q -b $macrospath/doexclusions.C+\("\"$date\""\) | tee $doexclusionslog | intgrep` 80 80 81 81 case $check1 in -
trunk/MagicSoft/Mars/datacenter/scripts/doqualityplots
r7944 r7954 51 51 echo "producing plots: " >> $scriptlog 2>&1 52 52 printprocesslog "INFO producing data quality plots" 53 check0=`root -q -b $macrospath/plotdb.C+\(\) | tee -a $scriptlog | grep int | sed -e 's/.*(int)//'`53 check0=`root -q -b $macrospath/plotdb.C+\(\) | tee -a $scriptlog | intgrep` 54 54 55 55 case $check0 in … … 98 98 makedir $outpath >> $scriptlog 2>&1 99 99 rm -v $plotlog >> $scriptlog 2>&1 100 check1=`root -q -b $macrospath/plotdb.C+\("\"$datasetfile\""\) 2>>$plotlog | tee -a $scriptlog | grep int | sed -e 's/.*(int)//'`100 check1=`root -q -b $macrospath/plotdb.C+\("\"$datasetfile\""\) 2>>$plotlog | tee -a $scriptlog | intgrep` 101 101 echo " check1: "$check1 >> $scriptlog 2>&1 102 102 newpsfile=$outpath/plotdb$nr.ps -
trunk/MagicSoft/Mars/datacenter/scripts/filesondisk
r7944 r7954 70 70 71 71 echo "resetting runs..." >> $scriptlog 2>&1 72 check3=`root -q -b $macrospath/resetallruns.C+\("\"$filename\""\,"\"$column\""\) | tee $filesondisklogpath/resetall-$column-$datetime.log | grep int | sed -e 's/(int)//'`72 check3=`root -q -b $macrospath/resetallruns.C+\("\"$filename\""\,"\"$column\""\) | tee $filesondisklogpath/resetall-$column-$datetime.log | intgrep` 73 73 74 74 case $check3 in … … 92 92 93 93 echo "resetting runs..." >> $scriptlog 2>&1 94 check0=`root -q -b $macrospath/resetallruns.C+\("\"$filename\""\,"\"$column\""\) | tee $filesondisklogpath/resetall-$column-$datetime.log | grep int | sed -e 's/(int)//'`94 check0=`root -q -b $macrospath/resetallruns.C+\("\"$filename\""\,"\"$column\""\) | tee $filesondisklogpath/resetall-$column-$datetime.log | intgrep` 95 95 96 96 case $check0 in … … 109 109 echo "checking missing cacofiles..." >> $scriptlog 2>&1 110 110 printprocesslog "INFO checking missing cacofiles" 111 check1=`root -q -b $macrospath/findcacofiles.C+\("\"$date\""\,"\"$filesondisklogpath\""\) | tee $filesondisklogpath/findcacofiles-$datetime.log | grep int | sed -e 's/(int)//'`111 check1=`root -q -b $macrospath/findcacofiles.C+\("\"$date\""\,"\"$filesondisklogpath\""\) | tee $filesondisklogpath/findcacofiles-$datetime.log | intgrep` 112 112 113 113 case $check1 in … … 149 149 printprocesslog "INFO inserting cacofile for run $missingcacorun" 150 150 echo " inserting cacofile $file for run $missingcacorun..." >> $scriptlog 2>&1 151 check2=`root -q -b $macrospath/insertcacofile.C+\("\"$runno\""\,"\"$newrun\""\) | tee $filesondisklogpath/insertcacofile-$missingcacorun.log | grep int | sed -e 's/(int)//'`151 check2=`root -q -b $macrospath/insertcacofile.C+\("\"$runno\""\,"\"$newrun\""\) | tee $filesondisklogpath/insertcacofile-$missingcacorun.log | intgrep` 152 152 153 153 case $check2 in … … 182 182 183 183 echo "resetting runs..." >> $scriptlog 2>&1 184 check4=`root -q -b $macrospath/resetallruns.C+\("\"$filename\""\,"\"$column\""\) | tee $filesondisklogpath/resetall-$column-$datetime.log | grep int | sed -e 's/(int)//'`184 check4=`root -q -b $macrospath/resetallruns.C+\("\"$filename\""\,"\"$column\""\) | tee $filesondisklogpath/resetall-$column-$datetime.log | intgrep` 185 185 186 186 case $check4 in -
trunk/MagicSoft/Mars/datacenter/scripts/fillcallisto
r7944 r7954 43 43 set -C 44 44 45 scriptlog=$runlogpath/ run$program-$datetime.log45 scriptlog=$runlogpath/$program-$datetime.log 46 46 date >> $scriptlog 2>&1 47 47 … … 85 85 printprocesslog "INFO starting fillcalib for sequence $sequence" 86 86 87 check1=`root -q -b $macrospath/fillcalib.C+\("\"$calibfile\""\,kFALSE\) | tee $fillcaliblog | grep int | sed -e 's/(int)//'`87 check1=`root -q -b $macrospath/fillcalib.C+\("\"$calibfile\""\,kFALSE\) | tee $fillcaliblog | intgrep` 88 88 89 89 case $check1 in … … 105 105 106 106 printprocesslog "INFO starting fillsignal for sequence $sequence" 107 check2=`root -q -b $macrospath/fillsignal.C+\("\"$signalfile\""\,kFALSE\) | tee $fillsignallog | grep int | sed -e 's/(int)//'`107 check2=`root -q -b $macrospath/fillsignal.C+\("\"$signalfile\""\,kFALSE\) | tee $fillsignallog | intgrep` 108 108 case $check2 in 109 109 1) echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1 -
trunk/MagicSoft/Mars/datacenter/scripts/fillganymed
r7944 r7954 42 42 set -C 43 43 44 scriptlog=$runlogpath/ run$program-$datetime.log44 scriptlog=$runlogpath/$program-$datetime.log 45 45 date >> $scriptlog 2>&1 46 46 … … 81 81 setstatus "start" >> $scriptlog 2>&1 82 82 83 check2=`root -q -b $macrospath/fillganymed.C+\("\"$ganymedfile\""\,kFALSE\) | tee $fillganymedlog | grep int | sed -e 's/(int)//'`83 check2=`root -q -b $macrospath/fillganymed.C+\("\"$ganymedfile\""\,kFALSE\) | tee $fillganymedlog | intgrep` 84 84 case $check2 in 85 85 1) echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1 -
trunk/MagicSoft/Mars/datacenter/scripts/fillstar
r7944 r7954 42 42 set -C 43 43 44 scriptlog=$runlogpath/ run$program-$datetime.log44 scriptlog=$runlogpath/$program-$datetime.log 45 45 date >> $scriptlog 2>&1 46 46 … … 81 81 setstatus "start" >> $scriptlog 2>&1 82 82 83 check2=`root -q -b $macrospath/fillstar.C+\("\"$starfile\""\,kFALSE\) | tee $fillstarlog | grep \(int\) | sed -e 's/.*(int)//'`83 check2=`root -q -b $macrospath/fillstar.C+\("\"$starfile\""\,kFALSE\) | tee $fillstarlog | intgrep` 84 84 case $check2 in 85 85 1) echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1 -
trunk/MagicSoft/Mars/datacenter/scripts/insertdatasets
r7944 r7954 70 70 echo "number in filename and in file are not the same " >> $scriptlog 2>&1 71 71 echo " -> continue with next dataset" >> $scriptlog 2>&1 72 printprocesslog "ERROR number in filename and fileare not the same for dataset $no2"72 printprocesslog "ERROR number in filename ($no) and file ($no3) are not the same for dataset $no2" 73 73 continue 74 74 fi … … 97 97 printprocesslog "INFO inserting dataset $no2" 98 98 # insert information into db 99 check0=`root -q -b $macrospath/insertdataset.C+\("\"$no2\""\,"\"$source\""\,"\"$wobble\""\,"\"$comment\""\,kFALSE\) | tee $insertdatasetlog | grep int | sed -e 's/(int)//'`99 check0=`root -q -b $macrospath/insertdataset.C+\("\"$no2\""\,"\"$source\""\,"\"$wobble\""\,"\"$comment\""\,kFALSE\) | tee $insertdatasetlog | intgrep` 100 100 case $check0 in 101 101 1) echo " check0=$check0 -> everything ok " >> $scriptlog 2>&1 -
trunk/MagicSoft/Mars/datacenter/scripts/insertsequences
r7944 r7954 66 66 insertsequencelog=$insertsequencepath/$program-$no.log 67 67 68 check0=`root -q -b $macrospath/insertsequence.C+\("\"$sequencefile\""\,kFALSE\) | tee $insertsequencelog | grep int | sed -e 's/(int)//'`68 check0=`root -q -b $macrospath/insertsequence.C+\("\"$sequencefile\""\,kFALSE\) | tee $insertsequencelog | intgrep` 69 69 case $check0 in 70 70 1) echo "check0=$check0 -> everything ok " >> $scriptlog 2>&1 -
trunk/MagicSoft/Mars/datacenter/scripts/makecallistolinks
r7944 r7954 84 84 resetlog=$resetlogpath/reset-callisto-$sequ.log 85 85 86 check1=`root -q -b $macrospath/resetcolumn.C+\("\"$column\""\,"\"$table\""\,"\"$sequ\""\,"\"$sequ\""\,kFALSE\) | tee $resetlog | grep int | sed -e 's/(int)//'`86 check1=`root -q -b $macrospath/resetcolumn.C+\("\"$column\""\,"\"$table\""\,"\"$sequ\""\,"\"$sequ\""\,kFALSE\) | tee $resetlog | intgrep` 87 87 case $check1 in 88 88 1) echo " check1=$check1 -> everything ok, callisto has been reset " >> $scriptlog 2>&1 -
trunk/MagicSoft/Mars/datacenter/scripts/sourcefile
r7951 r7954 109 109 110 110 111 # alias 112 alias 'intgrep'='grep -E ^\\\(int\\\)[0-9]+$ | sed -e s\/\(int\)\/\/' 113 111 114 # in the following the function, which are needed by several scripts, are 112 115 # defined … … 220 223 starttime="Now()" 221 224 ;; 222 stop) echo "setstatus stop" 223 case $check in 224 ok) echo " ok" 225 stop) case $check in 226 ok) echo "setstatus stop - ok" 225 227 statustime="Now()" 226 228 ;; 227 no) echo " nothing new"229 no) echo "setstatus stop - nothing new" 228 230 check="ok" 229 231 ;; 230 *) echo " failed"232 *) echo "setstatus stop - failed" 231 233 starttime=noreset 232 234 returncode=$check … … 428 430 fi 429 431 query=$query", fFailedTime=$failedtime, fFailedCode=$failedcode, fFailedCodeAdd=$failedcodeadd, fReturnCode=$returncode " 430 query=$query" where $primary= $var2"432 query=$query" where $primary='$var2'" 431 433 echo " QUERY: "$query 432 434 if ! mysql -s -u $us --password=$pw --host=hercules $db -e " $query " -
trunk/MagicSoft/Mars/datacenter/scripts/writesequencefiles
r7944 r7954 82 82 setstatus "start" >> $scriptlog 2>&1 83 83 84 check2=`root -q -b $macrospath/writesequencefile.C+\($sequence\,"\"$sequpath\""\) | tee $writesequencefilelog | grep int | sed -e 's/(int)//'`84 check2=`root -q -b $macrospath/writesequencefile.C+\($sequence\,"\"$sequpath\""\) | tee $writesequencefilelog | intgrep` 85 85 case $check2 in 86 86 1) echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1
Note:
See TracChangeset
for help on using the changeset viewer.