Ignore:
Timestamp:
08/25/06 22:09:49 (18 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r7938 r7944  
    3636#
    3737
     38source `dirname $0`/sourcefile
     39printprocesslog "INFO starting $0"
    3840program=fillcallisto
    39 source `dirname $0`/sourcefile
     41column=fFillCallisto
    4042
    4143set -C
    4244
    43 column=fFillCallisto
    44 
    45 lockfile=$lockpath/lock-$program.txt
    46 
    47 scriptlogpath=$runlogpath/$program
    48 makedir $scriptlogpath
    49 scriptlog=$scriptlogpath/run$program-$datetime.log
    50 
     45scriptlog=$runlogpath/run$program-$datetime.log
    5146date >> $scriptlog 2>&1
    5247
    5348# check if the script is already running
     49lockfile=$lockpath/lock-$program.txt
    5450checklock  >> $scriptlog 2>&1
    5551
     
    7167for sequence in ${sequences[@]}
    7268do
     69   printprocesslog "INFO starting $program for sequence $sequence"
    7370   no=`printf %08d $sequence | cut -c 0-4`
    7471   no2=`printf %08d $sequence`
     
    8683   setstatus "start" >> $scriptlog 2>&1
    8784   echo "run fillcalib..." >> $scriptlog 2>&1
     85   printprocesslog "INFO starting fillcalib for sequence $sequence"
    8886
    8987   check1=`root -q -b $macrospath/fillcalib.C+\("\"$calibfile\""\,kFALSE\) | tee $fillcaliblog | grep int | sed -e 's/(int)//'`
    9088
    9189   case $check1 in
    92       1)   echo " check1=$check1 -> everything ok -> run fillsignal " >> $scriptlog 2>&1 ;;
     90      1)   echo " check1=$check1 -> everything ok -> run fillsignal " >> $scriptlog 2>&1
     91           printprocesslog "INFO done fillcalib successfully for sequence $sequence"
     92           ;;
    9393      0)   echo " check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&1
     94           printprocesslog "WARN connection to DB failed"
    9495           check="no"
    9596           setstatus "stop" >> $scriptlog 2>&1
    9697           continue ;;
    9798      *)   echo " check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
     99           printprocesslog "ERROR fillcalib failed for sequence $sequence"
    98100           com=$Ffillcalib
    99101           check=$check1
     
    102104   esac
    103105
     106   printprocesslog "INFO starting fillsignal for sequence $sequence"
    104107   check2=`root -q -b $macrospath/fillsignal.C+\("\"$signalfile\""\,kFALSE\) | tee $fillsignallog | grep int | sed -e 's/(int)//'`
    105108   case $check2 in
    106       1)   echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1 ;;
     109      1)   echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1
     110           printprocesslog "INFO done fillsignal successfully for sequence $sequence"
     111           ;;
    107112      0)   echo " check2=$check2 -> no connection to db -> continue..." >> $scriptlog 2>&1
     113           printprocesslog "WARN connection to DB failed"
    108114           check="no"
    109115           ;;
    110116      *)   echo " check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
     117           printprocesslog "ERROR fillsignal failed for sequence $sequence"
    111118           com=$Ffillsignal
    112119           check=$check2
Note: See TracChangeset for help on using the changeset viewer.