Ignore:
Timestamp:
08/22/06 15:36:10 (18 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r7909 r7911  
    2828# all sequences of which the results are not yet in the database.
    2929#
    30 # After checking, if the script is already running, the todolist is
    31 # written
     30# After checking if the script is already running the todolist is written.
    3231# Then for each sequence in the todo list the calibration results are
    3332# filled into the table Calibration in the database using the macros
     
    5655
    5756# get todo file
    58 gettodolist  >> $scriptlog 2>&1
     57gettodo  >> $scriptlog 2>&1
    5958
    6059sequences=(`cat $todofile`)
     
    7978   calibfile=$path/calib$no2.root
    8079   fillcallistologpath=$logpath/$program/$no
    81    echo "$programlogpath: "$fillcallistologpath >> $scriptlog 2>&1
    8280   makedir $fillcallistologpath >> $scriptlog 2>&1
    8381   fillcaliblog=$fillcallistologpath/fillcalib-$sequence.log
     
    9189
    9290   case $check1 in
    93       1)   echo "check1=$check1 -> everything ok -> run fillsignal " >> $scriptlog 2>&1 ;;
    94       0)   echo "check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&1
     91      1)   echo " check1=$check1 -> everything ok -> run fillsignal " >> $scriptlog 2>&1 ;;
     92      0)   echo " check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&1
    9593           check="no"
    9694           setstatus "stop" >> $scriptlog 2>&1
    9795           continue ;;
    98       *)   echo "check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
     96      *)   echo " check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
    9997           com=$Ffillcalib
    10098           check=$check1
     
    105103   check2=`root -q -b $macrospath/fillsignal.C+\("\"$signalfile\""\,kFALSE\) | tee $fillsignallog | grep int | sed -e 's/(int)//'`
    106104   case $check2 in
    107       1)   echo "check2=$check2 -> everything ok " >> $scriptlog 2>&1 ;;
    108       0)   echo "check2=$check2 -> no connection to db -> continue..." >> $scriptlog 2>&1
     105      1)   echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1 ;;
     106      0)   echo " check2=$check2 -> no connection to db -> continue..." >> $scriptlog 2>&1
    109107           check="no"
    110108           ;;
    111       *)   echo "check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
     109      *)   echo " check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
    112110           com=$Ffillsignal
    113111           check=$check2
    114112           ;;
    115113   esac
    116    echo "inserting the status for $program for sequence $sequence into the db" >> $scriptlog 2>&1
     114   
    117115   setstatus "stop" >> $scriptlog 2>&1
    118116done
Note: See TracChangeset for help on using the changeset viewer.