Ignore:
Timestamp:
02/01/06 18:04:43 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r7465 r7471  
    104104   no=`printf %08d $sequence | cut -c 0-4`
    105105   no2=`printf %08d $sequence`
     106   var1=$no
     107   var2=$no2
    106108   path="$datapath/star/$no/$no2"
    107109   starfile=$path/star$no2.root
     
    112114
    113115   echo "run $program for sequence $sequence" >> $scriptlog 2>&1
     116   setstatus "start" >> $scriptlog 2>&1
     117
    114118   check2=`root -q -b $macrospath/fillstar.C+\("\"$starfile\""\,kFALSE\) | tee $fillstarlog | grep int | sed -e 's/(int)//'`
    115119   case $check2 in
    116       1)   echo "check2=$check2 -> everything ok " >> $scriptlog 2>&1
    117            echo "-> inserting the status for $program for sequence $sequence into the db" >> $scriptlog 2>&1
    118            statustime="Now()"
    119            failed="NULL"
    120            starttime="NULL"
    121            failedtime="NULL"
    122            var1=$no
    123            var2=$no2
    124            setstatus
    125           ;;
     120      1)   echo "check2=$check2 -> everything ok " >> $scriptlog 2>&1 ;;
    126121      *)   echo "check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;;
     122           com="fillstar for sequence $sequence failed"
     123           check=$check2
     124           ;;
    127125   esac
     126   echo "inserting the status for $program for sequence $sequence into the db" >> $scriptlog 2>&1
     127   setstatus "stop" >> $scriptlog 2>&1
    128128done
    129129
Note: See TracChangeset for help on using the changeset viewer.