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

    r7938 r7944  
    3535#
    3636
     37source `dirname $0`/sourcefile
     38printprocesslog "INFO starting $0"
    3739program=buildsequenceentries
    38 source `dirname $0`/sourcefile
     40column=fSequenceEntriesBuilt
    3941
    4042set -C
    4143
    42 column=fSequenceEntriesBuilt
    43 
    44 lockfile=$lockpath/lock-$program.txt
    45 
    46 scriptlogpath=$runlogpath/$program
    47 makedir $scriptlogpath
    48 scriptlog=$scriptlogpath/$program-$datetime.log
    49 
     44scriptlog=$runlogpath/$program-$datetime.log
    5045date >> $scriptlog 2>&1
    5146
    5247# check if script is already running
     48lockfile=$lockpath/lock-$program.txt
    5349checklock  >> $scriptlog 2>&1
    5450
     
    7167do
    7268   echo "building sequence entries for date $date..." >> $scriptlog 2>&1
     69   printprocesslog "INFO build sequence entries for $date"
    7370   year2=`echo $date | cut -c 1-4`
    7471   var1=$year2
     
    8380
    8481   case $check1 in
    85       1)   echo " check1=$check1 -> everything ok -> setting status for $date..." >> $scriptlog 2>&1;;
     82      1)   echo " check1=$check1 -> everything ok -> setting status for $date..." >> $scriptlog 2>&1
     83           printprocesslog "INFO sequence entries successfully built for $date"
     84           ;;
    8685      0)   echo " check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&1
     86           printprocesslog "WARN connection to DB failed"
    8787           check="no"
    8888           ;;
    8989      *)   echo " check1=$check1 -> ERROR - $program.C failed for $date -> step has to be repeated" >> $scriptlog 2>&1
     90           printprocesslog "ERROR $program.C failed for $date"
    9091           com=$Fbuildsequ
    9192           check=$check1
Note: See TracChangeset for help on using the changeset viewer.