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

    r7938 r7944  
    3535#
    3636
     37source `dirname $0`/sourcefile
     38printprocesslog "INFO starting $0"
    3739program=fillstar
    38 source `dirname $0`/sourcefile
     40column=fFillStar
    3941
    4042set -C
    4143
    42 column=fFillStar
    43 
    44 lockfile=$lockpath/lock-$program.txt
    45 
    46 scriptlogpath=$runlogpath/$program
    47 makedir $scriptlogpath
    48 scriptlog=$scriptlogpath/run$program-$datetime.log
    49 
     44scriptlog=$runlogpath/run$program-$datetime.log
    5045date >> $scriptlog 2>&1
    5146
    5247# check if the script is already running
     48lockfile=$lockpath/lock-$program.txt
    5349checklock  >> $scriptlog 2>&1
    5450
    5551# get todo list
    5652getdolist  >> $scriptlog 2>&1
    57 
    5853
    5954# retrieve sequences from todo file
     
    7267for sequence in ${sequences[@]}
    7368do
     69   printprocesslog "INFO starting $program for sequence $sequence"
    7470   no=`printf %08d $sequence | cut -c 0-4`
    7571   no2=`printf %08d $sequence`
     
    8783   check2=`root -q -b $macrospath/fillstar.C+\("\"$starfile\""\,kFALSE\) | tee $fillstarlog | grep \(int\) | sed -e 's/.*(int)//'`
    8884   case $check2 in
    89       1)   echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1 ;;
     85      1)   echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1
     86           printprocesslog "INFO done fillstar successfully for sequence $sequence"
     87           ;;
    9088      0)   echo " check2=$check2 -> no connection to db -> continue..." >> $scriptlog 2>&1
     89           printprocesslog "WARN connection to DB failed"
    9190           check="no"
    9291           ;;
    9392      *)   echo " check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
     93           printprocesslog "ERROR fillstar failed for sequence $sequence"
    9494           com=$Ffillstar
    9595           check=$check2
Note: See TracChangeset for help on using the changeset viewer.