Changeset 7954 for trunk


Ignore:
Timestamp:
08/29/06 09:08:55 (18 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
17 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7953 r7954  
    1818
    1919                                                 -*-*- 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
    2050 2006/08/28 Thomas Bretz
    2151
  • trunk/MagicSoft/Mars/datacenter/scripts/buildsequenceentries

    r7944 r7954  
    7373   buildsequentriespath=$logpath/$program/$year2
    7474   makedir  $buildsequentriespath >> $scriptlog 2>&1
    75    buildsequenceentrieslog=$buildsequentriespath/buildsequenceentries-$date.log
     75   buildsequentrieslog=$buildsequentriespath/buildsequenceentries-$date.log
    7676
    7777   setstatus "start" >> $scriptlog 2>&1
    7878
    79    check1=`root -q -b $macrospath/buildsequenceentries.C+\("\"$date\""\,"\"$datapath\""\,"\"$sequpath\""\,kFALSE\) | tee $buildsequeentrieslog | grep int | sed -e 's/(int)//'`
     79   check1=`root -q -b $macrospath/buildsequenceentries.C+\("\"$date\""\,"\"$datapath\""\,"\"$sequpath\""\,kFALSE\) | tee $buildsequentrieslog | intgrep`
    8080
    8181   case $check1 in
  • trunk/MagicSoft/Mars/datacenter/scripts/checkfilesforsequenceavail

    r7944 r7954  
    7878   setstatus "start" >> $scriptlog 2>&1
    7979
    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`
    8181
    8282   case $check1 in
  • trunk/MagicSoft/Mars/datacenter/scripts/checkstardone

    r7944 r7954  
    9191      printprocesslog "INFO check availability for sequence $sequence"
    9292
    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`
    9494
    9595      case $check1 in
  • trunk/MagicSoft/Mars/datacenter/scripts/copyscript

    r7944 r7954  
    147147         then
    148148            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           
    150152            case $checkfillrbk in
    151153               1) echo " checkfillrbk=$checkfillrbk -> everything ok " >> $scriptlog 2>&1
     
    158160            esac
    159161         fi
     162         
    160163         if echo $file | grep 'CC_.*.run' >> $scriptlog 2>&1  && ! echo $file | grep .run.html >> $scriptlog 2>&1
    161164         then
    162165            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           
    164169            case $checkfillrun in
    165170               1) echo " checkfillrun=$checkfillrun -> everything ok " >> $scriptlog 2>&1
    166171                  echo "  -> insert date in SequenceBuildStatus for $date" >> $scriptlog 2>&1
    167172
    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                 
    169175                  case $checkinsertdate in
    170176                     1) echo "date inserted" >> $scriptlog 2>&1 ;;
  • trunk/MagicSoft/Mars/datacenter/scripts/dodatacheck

    r7944 r7954  
    7979filldotrawlogfile=$filldotrawpath/filldotraw-$no2.log
    8080
    81 check1=`root -q -b $macrospath/filldotraw.C+\("\"$rawfile\""\,kFALSE\) | tee $filldotrawlogfile | grep int | sed -e 's/.*(int)//'`
     81check1=`root -q -b $macrospath/filldotraw.C+\("\"$rawfile\""\,kFALSE\) | tee $filldotrawlogfile | intgrep`
    8282
    8383case $check1 in
     
    132132
    133133echo "doing fillsinope..." >> $scriptlog 2>&1
    134 check3=`root -q -b $macrospath/fillsinope.C+\($run\,"\"$datapath\""\,kFALSE\) | tee $fillsinopelogfile | grep int | sed -e 's/.*(int)//'`
     134check3=`root -q -b $macrospath/fillsinope.C+\($run\,"\"$datapath\""\,kFALSE\) | tee $fillsinopelogfile | intgrep`
    135135
    136136case $check3 in
     
    158158resetlog=$resetlogpath/reset-exclusions-$no2-$date2.log
    159159
    160 check5=`root -q -b $macrospath/resetcolumn.C+\("\"fExclusionsDone\""\,"\"SequenceBuildStatus\""\,"\"$date2\""\,"\"$date2\""\,kFALSE\) | tee $resetlog | grep int | sed -e 's/(int)//'`
     160check5=`root -q -b $macrospath/resetcolumn.C+\("\"fExclusionsDone\""\,"\"SequenceBuildStatus\""\,"\"$date2\""\,"\"$date2\""\,kFALSE\) | tee $resetlog | intgrep`
    161161case $check5 in
    162162   1)   echo " check5=$check5 -> everything ok, fExclusions have been reset " >> $scriptlog 2>&1
  • trunk/MagicSoft/Mars/datacenter/scripts/doexclusions

    r7944 r7954  
    7777   setstatus "start" >> $scriptlog 2>&1
    7878
    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`
    8080
    8181   case $check1 in
  • trunk/MagicSoft/Mars/datacenter/scripts/doqualityplots

    r7944 r7954  
    5151echo "producing plots: " >> $scriptlog 2>&1
    5252printprocesslog "INFO producing data quality plots"
    53 check0=`root -q -b $macrospath/plotdb.C+\(\) | tee -a $scriptlog | grep int | sed -e 's/.*(int)//'`
     53check0=`root -q -b $macrospath/plotdb.C+\(\) | tee -a $scriptlog | intgrep`
    5454
    5555case $check0 in
     
    9898   makedir $outpath >> $scriptlog 2>&1
    9999   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`
    101101   echo " check1: "$check1 >> $scriptlog 2>&1
    102102   newpsfile=$outpath/plotdb$nr.ps
  • trunk/MagicSoft/Mars/datacenter/scripts/filesondisk

    r7944 r7954  
    7070
    7171echo "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)//'`
     72check3=`root -q -b $macrospath/resetallruns.C+\("\"$filename\""\,"\"$column\""\) | tee $filesondisklogpath/resetall-$column-$datetime.log | intgrep`
    7373
    7474case $check3 in
     
    9292
    9393echo "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)//'`
     94check0=`root -q -b $macrospath/resetallruns.C+\("\"$filename\""\,"\"$column\""\) | tee $filesondisklogpath/resetall-$column-$datetime.log | intgrep`
    9595
    9696case $check0 in
     
    109109echo "checking missing cacofiles..." >> $scriptlog 2>&1
    110110printprocesslog "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)//'`
     111check1=`root -q -b $macrospath/findcacofiles.C+\("\"$date\""\,"\"$filesondisklogpath\""\) | tee $filesondisklogpath/findcacofiles-$datetime.log | intgrep`
    112112
    113113case $check1 in
     
    149149         printprocesslog "INFO inserting cacofile for run $missingcacorun"
    150150         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`
    152152
    153153         case $check2 in
     
    182182
    183183echo "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)//'`
     184check4=`root -q -b $macrospath/resetallruns.C+\("\"$filename\""\,"\"$column\""\) | tee $filesondisklogpath/resetall-$column-$datetime.log | intgrep`
    185185
    186186case $check4 in
  • trunk/MagicSoft/Mars/datacenter/scripts/fillcallisto

    r7944 r7954  
    4343set -C
    4444
    45 scriptlog=$runlogpath/run$program-$datetime.log
     45scriptlog=$runlogpath/$program-$datetime.log
    4646date >> $scriptlog 2>&1
    4747
     
    8585   printprocesslog "INFO starting fillcalib for sequence $sequence"
    8686
    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`
    8888
    8989   case $check1 in
     
    105105
    106106   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`
    108108   case $check2 in
    109109      1)   echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1
  • trunk/MagicSoft/Mars/datacenter/scripts/fillganymed

    r7944 r7954  
    4242set -C
    4343
    44 scriptlog=$runlogpath/run$program-$datetime.log
     44scriptlog=$runlogpath/$program-$datetime.log
    4545date >> $scriptlog 2>&1
    4646
     
    8181   setstatus "start" >> $scriptlog 2>&1
    8282
    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`
    8484   case $check2 in
    8585      1)   echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1
  • trunk/MagicSoft/Mars/datacenter/scripts/fillstar

    r7944 r7954  
    4242set -C
    4343
    44 scriptlog=$runlogpath/run$program-$datetime.log
     44scriptlog=$runlogpath/$program-$datetime.log
    4545date >> $scriptlog 2>&1
    4646
     
    8181   setstatus "start" >> $scriptlog 2>&1
    8282
    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`
    8484   case $check2 in
    8585      1)   echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1
  • trunk/MagicSoft/Mars/datacenter/scripts/insertdatasets

    r7944 r7954  
    7070      echo "number in filename and in file are not the same " >> $scriptlog 2>&1
    7171      echo " -> continue with next dataset" >> $scriptlog 2>&1
    72       printprocesslog "ERROR number in filename and file are not the same for dataset $no2"
     72      printprocesslog "ERROR number in filename ($no) and file ($no3) are not the same for dataset $no2"
    7373      continue
    7474   fi
     
    9797   printprocesslog "INFO inserting dataset $no2"
    9898   # 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`
    100100   case $check0 in
    101101      1)   echo " check0=$check0 -> everything ok " >> $scriptlog 2>&1
  • trunk/MagicSoft/Mars/datacenter/scripts/insertsequences

    r7944 r7954  
    6666   insertsequencelog=$insertsequencepath/$program-$no.log
    6767
    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`
    6969   case $check0 in
    7070      1)   echo "check0=$check0 -> everything ok " >> $scriptlog 2>&1
  • trunk/MagicSoft/Mars/datacenter/scripts/makecallistolinks

    r7944 r7954  
    8484         resetlog=$resetlogpath/reset-callisto-$sequ.log
    8585
    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`
    8787         case $check1 in
    8888            1)   echo " check1=$check1 -> everything ok, callisto has been reset " >> $scriptlog 2>&1
  • trunk/MagicSoft/Mars/datacenter/scripts/sourcefile

    r7951 r7954  
    109109
    110110
     111# alias
     112alias 'intgrep'='grep -E ^\\\(int\\\)[0-9]+$ | sed -e s\/\(int\)\/\/'
     113
    111114# in the following the function, which are needed by several scripts, are
    112115# defined
     
    220223               starttime="Now()"
    221224               ;;
    222        stop)   echo "setstatus stop"
    223                case $check in
    224                  ok)  echo " ok"
     225       stop)   case $check in
     226                 ok)  echo "setstatus stop - ok"
    225227                      statustime="Now()"
    226228                      ;;
    227                  no)  echo "nothing new"
     229                 no)  echo "setstatus stop - nothing new"
    228230                      check="ok"
    229231                      ;;
    230                   *)  echo " failed"
     232                  *)  echo "setstatus stop - failed"
    231233                      starttime=noreset
    232234                      returncode=$check
     
    428430   fi
    429431   query=$query", fFailedTime=$failedtime, fFailedCode=$failedcode, fFailedCodeAdd=$failedcodeadd, fReturnCode=$returncode "
    430    query=$query" where $primary=$var2"
     432   query=$query" where $primary='$var2'"
    431433   echo " QUERY: "$query
    432434   if ! mysql -s -u $us --password=$pw --host=hercules $db -e " $query "
  • trunk/MagicSoft/Mars/datacenter/scripts/writesequencefiles

    r7944 r7954  
    8282   setstatus "start" >> $scriptlog 2>&1
    8383
    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`
    8585   case $check2 in
    8686      1)   echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1
Note: See TracChangeset for help on using the changeset viewer.