Ignore:
Timestamp:
08/05/05 18:33:55 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/datacenter/scripts
Files:
1 added
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/scripts/buildsequenceentries

    r7233 r7265  
    5757    0)   echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;;
    5858    1)   echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1
    59          echo "-> getting list for callisto is running -> exit" >> $scriptlog 2>&1
     59         echo "-> getting list for buildsequenceentries is running -> exit" >> $scriptlog 2>&1
    6060         date  >> $scriptlog 2>&1
    6161         exit;;
     
    6868
    6969case $check0 in
    70    1)   echo "check0=$check0 -> everthing ok -> do step" >> $scriptlog 2>&1;;
     70   1)   echo "check0=$check0 -> everything ok -> do step" >> $scriptlog 2>&1;;
    7171   *)   echo "check0=$check0 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;;
    7272esac
     
    9595
    9696   case $check1 in
    97       1)   echo "check1=$check1 -> everthing ok -> setting status..." >> $scriptlog 2>&1
     97      1)   echo "check1=$check1 -> everything ok -> setting status..." >> $scriptlog 2>&1
    9898           setstatuslogpath=$logpath/setstatus/buildsequenceentries/$year2
    9999           makedir $setstatuslogpath >> $scriptlog 2>&1
     
    101101           check2=`root -q -b $macrospath/setstatus.C+\("\"$date\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\)  | tee $setstatuslogpath/setstatus-buildsequenceentries-$date.log | grep int | sed -e 's/(int)//'`
    102102           case $check2 in
    103               1)   echo "check2=$check2 -> everthing ok, status has been set" >> $scriptlog 2>&1;;
     103              1)   echo "check2=$check2 -> everything ok, status has been set" >> $scriptlog 2>&1;;
    104104              *)   echo "check2=$check2 -> ERROR -> step could not be set" >> $scriptlog 2>&1;;
    105105           esac
  • trunk/MagicSoft/Mars/datacenter/scripts/checkfilesforsequenceavail

    r7233 r7265  
    6161
    6262case $check0 in
    63    1)   echo "check0=$check0 -> everthing ok -> do step" >> $scriptlog 2>&1 ;;
     63   1)   echo "check0=$check0 -> everything ok -> do step" >> $scriptlog 2>&1 ;;
    6464   *)   echo "check0=$check0 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 ;;
    6565esac
     
    8989
    9090   case $check1 in
    91       1)   echo "check1=$check1 -> everthing ok -> setting status..." >> $scriptlog 2>&1
     91      1)   echo "check1=$check1 -> everything ok -> setting status..." >> $scriptlog 2>&1
    9292           setstatuslogpath=$logpath/setstatus/checkfileavail/$no
    9393           makedir $setstatuslogpath  >> $scriptlog 2>&1
     
    9595           check2=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\)  | tee $setstatuslogpath/setstatus-checkfileavail-$sequence.log | grep int | sed -e 's/(int)//'`
    9696           case $check2 in
    97               1)   echo "check2=$check2 -> everthing ok, status has been set" >> $scriptlog 2>&1 ;;
     97              1)   echo "check2=$check2 -> everything ok, status has been set" >> $scriptlog 2>&1 ;;
    9898              *)   echo "check2=$check2 -> ERROR -> step could not be set" >> $scriptlog 2>&1 ;;
    9999           esac
  • trunk/MagicSoft/Mars/datacenter/scripts/checkstardone

    r7233 r7265  
    6262
    6363case $check0 in
    64    1)   echo "check0=$check0 -> everthing ok -> do step" >> $scriptlog 2>&1 ;;
     64   1)   echo "check0=$check0 -> everything ok -> do step" >> $scriptlog 2>&1 ;;
    6565   *)   echo "check0=$check0 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 ;;
    6666esac
     
    104104
    105105      case $check1 in
    106          1)   echo "check1=$check1 -> everthing ok -> continue with next sequence..." >> $scriptlog 2>&1 ;;
     106         1)   echo "check1=$check1 -> everything ok -> continue with next sequence..." >> $scriptlog 2>&1 ;;
    107107         *)   echo "check1=$check1 -> ERROR " >> $scriptlog 2>&1
    108108              echo "starfiles not available for sequence -> continue" >> $scriptlog 2>&1
     
    117117   check2=`root -q -b $macrospath/setstatus.C+\("\"$dataset\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\)  | tee $setstatuslogpath/setstatus-checkstardone-$dataset.log | grep int | sed -e 's/(int)//'`
    118118   case $check2 in
    119       1)   echo "check2=$check2 -> everthing ok, status has been set" >> $scriptlog 2>&1 ;;
     119      1)   echo "check2=$check2 -> everything ok, status has been set" >> $scriptlog 2>&1 ;;
    120120      *)   echo "check2=$check2 -> ERROR -> step could not be set" >> $scriptlog 2>&1 ;;
    121121   esac
  • trunk/MagicSoft/Mars/datacenter/scripts/correcttime

    r7233 r7265  
    5252
    5353case $check0 in
    54    1)   echo "check0=$check0 -> everthing ok -> run correct_raw_time";;
     54   1)   echo "check0=$check0 -> everything ok -> run correct_raw_time";;
    5555   *)   echo "check0=$check0 -> ERROR -> step has to be repeated";;
    5656esac
     
    8888
    8989  case $check1 in
    90      1)   echo "check1=$check1 -> everthing ok -> setting status..."
     90     1)   echo "check1=$check1 -> everything ok -> setting status..."
    9191          no=`printf %08d $run | cut -c 1-5`
    9292          setstatuspath=$logpath/setstatus/correct_raw_time/$no
     
    9797          case $check2 in
    9898             0)   echo "check2=0 -> ERROR -> step could not be set";;
    99              1)   echo "check2=1 -> everthing ok, status has been set";;
     99             1)   echo "check2=1 -> everything ok, status has been set";;
    100100          esac
    101101        ;;
  • trunk/MagicSoft/Mars/datacenter/scripts/doexclusions

    r7233 r7265  
    4242todofile=$listpath/ToDo-$table-$column.txt
    4343getstatuslogpath=$logpath/getstatus/doexclusions/$year
    44 getstatuslog=$getstatuslogpath/getstatus-doexcludions-$datetime.log
     44getstatuslog=$getstatuslogpath/getstatus-doexclusions-$datetime.log
    4545
    4646scriptlogpath=$logpath/run/doexclusions/`date +%Y/%m`
     
    5858    0)   echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;;
    5959    1)   echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1
    60          echo "-> getting list for callisto is running -> exit" >> $scriptlog 2>&1
     60         echo "-> getting list for doexclusions is running -> exit" >> $scriptlog 2>&1
    6161         date  >> $scriptlog 2>&1
    6262         exit;;
     
    6969
    7070case $check0 in
    71    1)   echo "check0=$check0 -> everthing ok -> do step" >> $scriptlog 2>&1;;
     71   1)   echo "check0=$check0 -> everything ok -> do step" >> $scriptlog 2>&1;;
    7272   *)   echo "check0=$check0 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;;
    7373esac
     
    8888for date in ${dates[@]}
    8989do
    90    echo "do exclusions for date "$date
     90   echo "do exclusions for date "$date >> $scriptlog 2>&1
    9191   year2=`echo $date | cut -c 1-4`
    9292   doexclusionspath=$logpath/doexclusions/$year2
     
    9696
    9797   case $check1 in
    98       1)   echo "check1=1 -> everthing ok -> setting status..."
     98      1)   echo "check1=$check1 -> everything ok -> setting status..." >> $scriptlog 2>&1
    9999           setstatuslogpath=$logpath/setstatus/doexclusions/$year2
    100100           makedir $setstatuslogpath >> $scriptlog 2>&1
     
    103103
    104104           case $check2 in
    105               1)   echo "check2=$check2 -> everthing ok, status has been set";;
    106               *)   echo "check2=$check2 -> ERROR -> step could not be set";;
     105              1)   echo "check2=$check2 -> everything ok, status has been set" >> $scriptlog 2>&1 ;;
     106              *)   echo "check2=$check2 -> ERROR -> step could not be set" >> $scriptlog 2>&1 ;;
    107107           esac
    108108        ;;
    109       *)   echo "check1=$check1 -> ERROR -> step has to be repeated";;
     109      *)   echo "check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 ;;
    110110   esac
    111111done
  • trunk/MagicSoft/Mars/datacenter/scripts/filesondisk

    r7233 r7265  
    5050
    5151case $check3 in
    52    1)   echo "check3=$check3 -> everthing ok -> reset is done";;
     52   1)   echo "check3=$check3 -> everything ok -> reset is done";;
    5353   *)   echo "check3=$check3 -> ERROR -> something went wrong while resetting";;
    5454esac
     
    6868
    6969case $check0 in
    70    1)   echo "check0=$check0 -> everthing ok -> reset is done";;
     70   1)   echo "check0=$check0 -> everything ok -> reset is done";;
    7171   *)   echo "check0=$check0 -> ERROR -> something went wrong while resetting";;
    7272esac
     
    7878
    7979case $check1 in
    80    1)   echo "check1=$check1 -> everthing ok -> missing cacofiles are found";;
     80   1)   echo "check1=$check1 -> everything ok -> missing cacofiles are found";;
    8181   *)   echo "check1=$check1 -> ERROR -> something went wrong while resetting";;
    8282esac
     
    110110
    111111         case $check2 in
    112             1)   echo "check2=$check2 -> everthing ok -> insert is done";;
     112            1)   echo "check2=$check2 -> everything ok -> insert is done";;
    113113            *)   echo "check2=$check2 -> ERROR -> something went wrong while inserting run "$missingcacorun;;
    114114         esac
     
    133133
    134134case $check4 in
    135    1)   echo "check4=$check4 -> everthing ok -> reset is done";;
     135   1)   echo "check4=$check4 -> everything ok -> reset is done";;
    136136   *)   echo "check4=$check4 -> ERROR -> something went wrong while resetting";;
    137137esac
  • trunk/MagicSoft/Mars/datacenter/scripts/fillcallisto

    r7233 r7265  
    6868
    6969case $check0 in
    70     1)   echo "check0=$check0 -> everthing ok -> run fillcallisto" >> $scriptlog 2>&1;;
     70    1)   echo "check0=$check0 -> everything ok -> run fillcallisto" >> $scriptlog 2>&1;;
    7171    *)   echo "check0=$check0 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;;
    7272esac
     
    103103
    104104   case $check1 in
    105       1)   echo "check1=$check1 -> everthing ok -> run fillsignal " >> $scriptlog 2>&1;;
     105      1)   echo "check1=$check1 -> everything ok -> run fillsignal " >> $scriptlog 2>&1;;
    106106      *)   echo "check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
    107107           continue;;
     
    110110   check2=`root -q -b $macrospath/fillsignal.C+\("\"$signalfile\""\,kFALSE\) | tee $fillsignallog | grep int | sed -e 's/(int)//'`
    111111   case $check2 in
    112       1)   echo "check2=$check2 -> everthing ok " >> $scriptlog 2>&1
     112      1)   echo "check2=$check2 -> everything ok " >> $scriptlog 2>&1
    113113           echo "-> inserting the status for fillcallisto for sequence $sequence into the db" >> $scriptlog 2>&1
    114114           setstatuslogpath=$logpath/setstatus/fillcallisto/$no
     
    118118           check4=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog-$sequence.log | grep int | sed -e 's/(int)//'`
    119119           case $check4 in
    120              1)   echo "check4=$check4 -> everthing ok, status has been set" >> $scriptlog 2>&1;;
     120             1)   echo "check4=$check4 -> everything ok, status has been set" >> $scriptlog 2>&1;;
    121121             *)   echo "check4=$check4 -> ERROR -> step could not be set" >> $scriptlog 2>&1;;
    122122           esac
  • trunk/MagicSoft/Mars/datacenter/scripts/fillstar

    r7233 r7265  
    6767
    6868case $check0 in
    69     1)   echo "check0=$check0 -> everthing ok -> run fillstar" >> $scriptlog 2>&1;;
     69    1)   echo "check0=$check0 -> everything ok -> run fillstar" >> $scriptlog 2>&1;;
    7070    *)   echo "check0=$check0 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;;
    7171esac
     
    9898   check2=`root -q -b $macrospath/fillstar.C+\("\"$starfile\""\,kFALSE\) | tee $fillstarlog | grep int | sed -e 's/(int)//'`
    9999   case $check2 in
    100       1)   echo "check2=$check2 -> everthing ok " >> $scriptlog 2>&1
     100      1)   echo "check2=$check2 -> everything ok " >> $scriptlog 2>&1
    101101           echo "-> inserting the status for fillstar for sequence $sequence into the db" >> $scriptlog 2>&1
    102102           setstatuslogpath=$logpath/setstatus/fillstar/$no
     
    106106           check4=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog | grep int | sed -e 's/(int)//'`
    107107           case $check4 in
    108              1)   echo "check4=$check4 -> everthing ok, status has been set" >> $scriptlog 2>&1;;
     108             1)   echo "check4=$check4 -> everything ok, status has been set" >> $scriptlog 2>&1;;
    109109             *)   echo "check4=$check4 -> ERROR -> step could not be set" >> $scriptlog 2>&1;;
    110110           esac
  • trunk/MagicSoft/Mars/datacenter/scripts/insertdatasets

    r7233 r7265  
    4949    0)   echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;;
    5050    1)   echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1
    51          echo "-> getting list for callisto is running -> exit" >> $scriptlog 2>&1
     51         echo "-> getting list for insertdatasets is running -> exit" >> $scriptlog 2>&1
    5252         date  >> $scriptlog 2>&1
    5353         exit;;
     
    9494   check0=`root -q -b $macrospath/insertdataset.C+\("\"$no2\""\,"\"$source\""\,"\"$wobble\"",kFALSE\) | tee $insertdatasetlog | grep int | sed -e 's/(int)//'`
    9595   case $check0 in
    96       1)   echo "check0=$check0 -> everthing ok " >> $scriptlog 2>&1 ;;
     96      1)   echo "check0=$check0 -> everything ok " >> $scriptlog 2>&1 ;;
    9797      *)   echo "check0=$check0 -> ERROR " >> $scriptlog 2>&1 ;;
    9898   esac
  • trunk/MagicSoft/Mars/datacenter/scripts/runcallisto

    r7256 r7265  
    7777   
    7878   case $check0 in
    79        1)   echo "check0=$check0 -> everthing ok -> run callisto" >> $scriptlog 2>&1;;
     79       1)   echo "check0=$check0 -> everything ok -> run callisto" >> $scriptlog 2>&1;;
    8080       *)   echo "check0=$check0 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;;
    8181   esac
     
    160160
    161161  case $check1 in
    162      0)   echo "check1=$check1 -> everthing ok -> doing update..." >> $scriptlog 2>&1
     162     0)   echo "check1=$check1 -> everything ok -> doing update..." >> $scriptlog 2>&1
    163163          echo "finding files to be updated" >> $scriptlog 2>&1
    164164          calfiles=`find $outpath -name *_Y_* `
     
    211211             check2=$?
    212212             case $check2 in
    213                      0)   echo "check2=$check2 -> everthing ok, merppccupdate worked -> continue" >> $scriptlog 2>&1;;
     213                     0)   echo "check2=$check2 -> everything ok, merppccupdate worked -> continue" >> $scriptlog 2>&1;;
    214214                     *)   echo "check2=$check2 -> ERROR -> merppccupdate failed" >> $scriptlog 2>&1
    215215                          continue 2 ;;
     
    218218             check3=$?
    219219             case $check3 in
    220                      0)   echo "check3=$check3 -> everthing ok, merppcacoupdate worked -> continue" >> $scriptlog 2>&1;;
     220                     0)   echo "check3=$check3 -> everything ok, merppcacoupdate worked -> continue" >> $scriptlog 2>&1;;
    221221                     *)   echo "check3=$check3 -> ERROR -> merppcacoupdate failed" >> $scriptlog 2>&1
    222222                          continue 2 ;;
     
    231231          check4=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog | grep int | sed -e 's/(int)//'`
    232232          case $check4 in
    233              1)   echo "check4=$check4 -> everthing ok, status has been set" >> $scriptlog 2>&1;;
     233             1)   echo "check4=$check4 -> everything ok, status has been set" >> $scriptlog 2>&1;;
    234234             *)   echo "check4=$check4 -> ERROR -> step could not be set" >> $scriptlog 2>&1;;
    235235          esac
  • trunk/MagicSoft/Mars/datacenter/scripts/runganymed

    r7258 r7265  
    7575   
    7676   case $check0 in
    77        1)   echo "check0=$check0 -> everthing ok -> run ganymed" >> $scriptlog 2>&1;;
     77       1)   echo "check0=$check0 -> everything ok -> run ganymed" >> $scriptlog 2>&1;;
    7878       *)   echo "check0=$check0 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;;
    7979   esac
     
    153153
    154154  case $check1 in
    155      0)   echo "check1=$check1 -> everthing ok " >> $scriptlog 2>&1
     155     0)   echo "check1=$check1 -> everything ok " >> $scriptlog 2>&1
    156156          echo "-> inserting the status for ganymed for dataset $dataset into the db" >> $scriptlog 2>&1
    157157          setstatuslogpath=$logpath/setstatus/ganymed/$no
     
    161161          check4=`root -q -b $macrospath/setstatus.C+\("\"$dataset\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog | grep int | sed -e 's/(int)//'`
    162162          case $check4 in
    163              1)   echo "check4=$check4 -> everthing ok, status has been set" >> $scriptlog 2>&1;;
     163             1)   echo "check4=$check4 -> everything ok, status has been set" >> $scriptlog 2>&1;;
    164164             *)   echo "check4=$check4 -> ERROR -> step could not be set" >> $scriptlog 2>&1;;
    165165          esac
  • trunk/MagicSoft/Mars/datacenter/scripts/runstar

    r7258 r7265  
    7474   
    7575   case $check0 in
    76        1)   echo "check0=$check0 -> everthing ok -> run star" >> $scriptlog 2>&1;;
     76       1)   echo "check0=$check0 -> everything ok -> run star" >> $scriptlog 2>&1;;
    7777       *)   echo "check0=$check0 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;;
    7878   esac
     
    145145
    146146  case $check1 in
    147      0)   echo "check1=$check1 -> everthing ok " >> $scriptlog 2>&1
     147     0)   echo "check1=$check1 -> everything ok " >> $scriptlog 2>&1
    148148          echo "-> inserting the status for star for sequence $sequence into the db" >> $scriptlog 2>&1
    149149          setstatuslogpath=$logpath/setstatus/star/$no
     
    153153          check4=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog | grep int | sed -e 's/(int)//'`
    154154          case $check4 in
    155              1)   echo "check4=$check4 -> everthing ok, status has been set" >> $scriptlog 2>&1;;
     155             1)   echo "check4=$check4 -> everything ok, status has been set" >> $scriptlog 2>&1;;
    156156             *)   echo "check4=$check4 -> ERROR -> step could not be set" >> $scriptlog 2>&1;;
    157157          esac
  • trunk/MagicSoft/Mars/datacenter/scripts/writesequencefiles

    r7233 r7265  
    6767
    6868case $check0 in
    69     1)   echo "check0=$check0 -> everthing ok -> run writesequencefiles" >> $scriptlog 2>&1;;
     69    1)   echo "check0=$check0 -> everything ok -> run writesequencefiles" >> $scriptlog 2>&1;;
    7070    *)   echo "check0=$check0 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;;
    7171esac
     
    9898   check2=`root -q -b $macrospath/writesequencefile.C+\($sequence\,"\"$sequpath\""\) | tee $writesequencefilelogpath/writesequencefile-$no2.log | grep int | sed -e 's/(int)//'`
    9999   case $check2 in
    100       1)   echo "check2=$check2 -> everthing ok " >> $scriptlog 2>&1
     100      1)   echo "check2=$check2 -> everything ok " >> $scriptlog 2>&1
    101101           echo "-> inserting the status for writesequencefile for sequence $sequence into the db" >> $scriptlog 2>&1
    102102           setstatuslogpath=$logpath/setstatus/writesequencefile/$no
     
    106106           check4=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog | grep int | sed -e 's/(int)//'`
    107107           case $check4 in
    108              1)   echo "check4=$check4 -> everthing ok, status has been set" >> $scriptlog 2>&1;;
     108             1)   echo "check4=$check4 -> everything ok, status has been set" >> $scriptlog 2>&1;;
    109109             *)   echo "check4=$check4 -> ERROR -> step could not be set" >> $scriptlog 2>&1;;
    110110           esac
Note: See TracChangeset for help on using the changeset viewer.