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

    r9133 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
     
    6461   ganymedfile=$path/ganymed$no2.root
    6562   fillganymedlogpath=$logpath/$program/$no
    66    makedir $fillganymedlogpath >> $scriptlog 2>&1
     63   makedir $fillganymedlogpath
    6764   fillganymedlog=$fillganymedlogpath/$program-$dataset.log
    6865
    69    echo "run $program for dataset $dataset" >> $scriptlog 2>&1
    70    setstatus "start" >> $scriptlog 2>&1
     66   printprocesslog "INFO run $program for dataset $dataset"
     67   setstatus "start"
    7168
    7269   check2=`root -q -b $macrospath/fillganymed.C+\("\"$ganymedfile\""\,kFALSE\) | tee $fillganymedlog | intgrep`
    7370   case $check2 in
    74       1)   echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1
    75            printprocesslog "INFO done fillganymed successfully for dataset $dataset"
     71      1)   printprocesslog "INFO done fillganymed successfully for dataset $dataset (check2=$check2)"
    7672           ;;
    77       0)   echo " check2=$check2 -> no connection to db -> continue..." >> $scriptlog 2>&1
    78            printprocesslog "WARN connection to DB failed"
     73      0)   printprocesslog "WARN connection to DB failed (check2=$check2)"
    7974           check="no"
    8075           ;;
    81       *)   echo " check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
    82            printprocesslog "ERROR fillganymed failed for dataset $datset"
     76      *)   printprocesslog "ERROR fillganymed failed for dataset $datset (check2=$check2)"
    8377           com=$Ffillganymed
    8478           check=$check2
     
    8680   esac
    8781
    88    setstatus "stop" >> scriptlog 2>&1
     82   setstatus "stop"
    8983done
    9084
    91 finish >> $scriptlog 2>&1
     85finish
    9286
Note: See TracChangeset for help on using the changeset viewer.