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

    r9054 r9355  
    4242set -C
    4343
    44 scriptlog=$runlogpath/$program-$datetime.log
    45 date >> $scriptlog 2>&1
    46 
    4744# check if the 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
     
    5956   date=${primaries[$s+$s]}
    6057   telnum=${primaries[$s+$s+1]}
    61    echo "do exclusions for date "$date >> $scriptlog 2>&1
    62    printprocesslog "INFO do exclusions for $date"
     58   printprocesslog "INFO do exclusions for $date $date"
    6359   year2=`echo $date | cut -c 1-4`
    6460   doexclusionspath=$logpath/$program/$year2
    65    makedir $doexclusionspath >> $scriptlog 2>&1
     61   makedir $doexclusionspath
    6662   doexclusionslog=$doexclusionspath/doexclusions-$date.log
    6763
    68    setstatus "start" >> $scriptlog 2>&1
     64   setstatus "start"
    6965
    7066   check1=`root -q -b $macrospath/doexclusions.C+\("\"$date\""\,$telnum\,kFALSE\) | tee $doexclusionslog | intgrep`
    7167
    7268   case $check1 in
    73       1)   echo " check1=$check1 -> everything ok -> setting status..." >> $scriptlog 2>&1
    74            printprocesslog "INFO exclusions successfully done for $date"
     69      1)   printprocesslog "INFO exclusions successfully done for $date (check1=$check1)"
    7570           ;;
    76       0)   echo " check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&1
    77            printprocesslog "WARN connection to DB failed"
     71      0)   printprocesslog "WARN connection to DB failed (check1=$check1)"
    7872           check="no"
    7973           ;;
    80       *)   echo " check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
    81            printprocesslog "ERROR $program.C failed"
     74      *)   printprocesslog "ERROR $program.C failed (check1=$check1)"
    8275           com=$Fdoexcl
    8376           check=$check1
     
    8578   esac
    8679   
    87    setstatus "stop" >> $scriptlog 2>&1
     80   setstatus "stop"
    8881done
    8982
    90 finish >> $scriptlog 2>&1
     83finish
    9184
Note: See TracChangeset for help on using the changeset viewer.