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/dodatacheck

    r7938 r7944  
    4040
    4141source `dirname $0`/sourcefile
     42printprocesslog "INFO starting $0"
    4243program=datacheck
    4344column=fDataCheckDone
     
    4546set -C
    4647
    47 scriptlogpath=$runlogpath/$program
    48 makedir $scriptlogpath
    49 scriptlog=$scriptlogpath/$program-$datetime.log
    50 
     48scriptlog=$runlogpath/$program-$datetime.log
    5149date >> $scriptlog 2>&1
    5250
     
    6260
    6361echo "do $program for run "$run >> $scriptlog 2>&1
     62printprocesslog "INFO do $program for run $run"
    6463no=`printf %08d $run | cut -c 0-2`
    6564no2=`printf %08d $run`
     
    8483case $check1 in
    8584   1)   echo " check1=$check1 -> everything ok -> go on with $program..." >> $scriptlog 2>&1
     85        printprocesslog "INFO finished filldotraw.C sucessfully for $rawfile"
    8686        ;;
    8787   0)   echo " check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&1
     88        printprocesslog "WARN connection to DB failed"
    8889        check="no"
    8990        setstatus "stop" >> $scriptlog 2>&1
    9091        continue ;;
    9192   *)   echo " check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
     93        printprocesslog "ERROR filldotraw.C failed for $rawfile"
    9294        com=$Ffillraw
    9395        check=$check1
     
    9799
    98100# running sinope
     101printprocesslog "INFO running sinope for $run"
    99102sinopepath=$datapath/sinope/$date
    100103makedir $sinopepath >> $scriptlog 2>&1
     
    113116            ;;
    114117       *)   echo " check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
     118            printprocesslog "ERROR sinope $sin failed for $rawfile"
    115119            com=$Fsinope
    116120#            comadd=
     
    132136case $check3 in
    133137   1)   echo " check3=$check3 -> everything ok -> set status..." >> $scriptlog 2>&1
     138        printprocesslog "INFO finished fillsinope.C sucessfully for run $run"
    134139        ;;
    135140   0)   echo " check3=$check3 -> no connection to db -> continue..." >> $scriptlog 2>&1
     141        printprocesslog "WARN connection to DB failed"
    136142        check="no"
    137143        setstatus "stop" >> $scriptlog 2>&1
    138144        continue ;;
    139145   *)   echo " check3=$check3 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
     146        printprocesslog "ERROR fillsinope.C failed for run $run"
    140147        com=$Ffillsinope
    141148        check=$check3
     
    146153# resetting the status for exclusions
    147154echo "resetting the status for fExclusionsDone for date $date2" >> $scriptlog 2>&1
     155printprocesslog "INFO resetting fExclusions done for $date2"
    148156resetlogpath=$logpath/resetexclusions/$date
    149157makedir $resetlogpath >> $scriptlog 2>&1
     
    153161case $check5 in
    154162   1)   echo " check5=$check5 -> everything ok, fExclusions have been reset " >> $scriptlog 2>&1
     163        printprocesslog "INFO resetted fExclusions done for $date2 successfully"
    155164        ;;
    156165   0)   echo " check5=$check5 -> no connection to db -> continue..." >> $scriptlog 2>&1
     166        printprocesslog "WARN connection to DB failed"
    157167        check="no"
    158168        setstatus "stop" >> $scriptlog 2>&1
    159169        continue ;;
    160170   *)   echo " check5=$check5 -> ERROR -> step could not be resetted -> repeat step " >> $scriptlog 2>&1
     171        printprocesslog "ERROR resetcolumn.C failed for date $date2"
    161172        com=$Fresetexcl
    162173        comadd=`echo $date2 | sed -e 's/-//g'`
Note: See TracChangeset for help on using the changeset viewer.