Ignore:
Timestamp:
02/19/09 21:22:19 (16 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r9215 r9355  
    4242set -C
    4343
    44 scriptlog=$runlogpath/$program-$datetime.log
    45 date >> $scriptlog 2>&1
    46 
    4744# check if script is already running
    4845lockfile=$lockpath/lock-$program.txt
    49 checklock  >> $scriptlog 2>&1
     46checklock
    5047
    5148# get todo list
    52 gettodo  >> $scriptlog 2>&1
     49gettodo
    5350
    5451cd $mars
     
    5855   date=${primaries[$s+$s]}
    5956   telnum=${primaries[$s+$s+1]}
    60    echo "building sequence entries for date $date..." >> $scriptlog 2>&1
    6157   printprocesslog "INFO build sequence entries for $date"
    6258   year2=`echo $date | cut -c 1-4`
    6359   buildsequentriespath=$logpath/$program/$year2
    64    makedir  $buildsequentriespath >> $scriptlog 2>&1
     60   makedir  $buildsequentriespath
    6561   buildsequentrieslog=$buildsequentriespath/buildsequenceentries-$date.log
    6662
    67    setstatus "start" >> $scriptlog 2>&1
     63   setstatus "start"
    6864
    6965   check1=`root -q -b $macrospath/buildsequenceentries.C+\("\"$date\""\,"\"$datapath\""\,"\"$sequpath\""\,$telnum\,kFALSE\) | tee $buildsequentrieslog | intgrep`
    7066
    7167   case $check1 in
    72       1)   echo " check1=$check1 -> everything ok -> setting status for $date..." >> $scriptlog 2>&1
    73            printprocesslog "INFO sequence entries successfully built for $date"
     68      1)   printprocesslog "INFO sequence entries successfully built for $date (check1=$check1)"
    7469           IFS=$'\n'
    7570           missing=( `grep "Missing" $buildsequentrieslog` )
     
    8378           unset IFS
    8479           ;;
    85       0)   echo " check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&1
    86            printprocesslog "WARN connection to DB failed"
     80      0)   printprocesslog "WARN connection to DB failed (check1=$check1)"
    8781           check="no"
    8882           ;;
    89       *)   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"
     83      *)   printprocesslog "ERROR $program.C failed for $date (check1=$check1)"
    9184           com=$Fbuildsequ
    9285           check=$check1
     
    9487   esac
    9588
    96    setstatus "stop" >> $scriptlog 2>&1
     89   setstatus "stop"
    9790done
    9891
    99 finish >> $scriptlog 2>&1
     92finish
    10093
Note: See TracChangeset for help on using the changeset viewer.