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

    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
     
    6562   starfile=$path/star$no2.root
    6663   fillstarlogpath=$logpath/$program/$no
    67    makedir $fillstarlogpath >> $scriptlog 2>&1
     64   makedir $fillstarlogpath
    6865   fillstarlog=$fillstarlogpath/$program-$sequence.log
    6966
    70    echo "run $program for sequence $sequence" >> $scriptlog 2>&1
    71    setstatus "start" >> $scriptlog 2>&1
     67   setstatus "start"
    7268
    7369   check2=`root -q -b $macrospath/fillstar.C+\("\"$starfile\""\,kFALSE\) | tee $fillstarlog | intgrep`
    7470   case $check2 in
    75       1)   echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1
    76            printprocesslog "INFO done fillstar successfully for sequence $sequence"
     71      1)   printprocesslog "INFO done fillstar successfully for sequence $sequence (check2=$check2)"
    7772           ;;
    78       0)   echo " check2=$check2 -> no connection to db -> continue..." >> $scriptlog 2>&1
    79            printprocesslog "WARN connection to DB failed"
     73      0)   printprocesslog "WARN connection to DB failed (check2=$check2)"
    8074           check="no"
    8175           ;;
    82       *)   echo " check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
    83            printprocesslog "ERROR fillstar failed for sequence $sequence"
     76      *)   printprocesslog "ERROR fillstar failed for sequence $sequence (check2=$check2)"
    8477           com=$Ffillstar
    8578           check=$check2
     
    8780   esac
    8881   
    89    setstatus "stop" >> $scriptlog 2>&1
     82   setstatus "stop"
    9083done
    9184
    92 finish >> $scriptlog 2>&1
     85finish
    9386
Note: See TracChangeset for help on using the changeset viewer.