Ignore:
Timestamp:
01/30/06 17:13:07 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r7460 r7465  
    3737
    3838user=`whoami`
     39program=fillstar
    3940source /home/$user/Mars/datacenter/scripts/sourcefile
    4041
     
    4849
    4950todofile=$listpath/ToDo-$table-$column.txt
    50 getstatuslogpath=$logpath/getstatus/fillstar/$year
    51 getstatuslog=$getstatuslogpath/getstatus-fillstar-$datetime.log
     51getstatuslogpath=$logpath/getstatus/$program/$year
     52getstatuslog=$getstatuslogpath/getstatus-$program-$datetime.log
    5253
    53 scriptlogpath=$logpath/run/fillstar/`date +%Y/%m/%d`
     54scriptlogpath=$logpath/run/$program/`date +%Y/%m/%d`
    5455makedir $scriptlogpath
    55 scriptlog=$scriptlogpath/runfillstar-$datetime.log
     56scriptlog=$scriptlogpath/run$program-$datetime.log
    5657
    5758date >> $scriptlog 2>&1
     
    6768    0)   echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;;
    6869    1)   echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1
    69          echo "-> fillstar is running -> exit" >> $scriptlog 2>&1
     70         echo "-> $program is running -> exit" >> $scriptlog 2>&1
    7071         date  >> $scriptlog 2>&1
    7172         exit;;
     
    7879
    7980case $check0 in
    80     1)   echo "check0=$check0 -> everything ok -> run fillstar" >> $scriptlog 2>&1;;
     81    1)   echo "check0=$check0 -> everything ok -> run $program" >> $scriptlog 2>&1;;
    8182    *)   echo "check0=$check0 -> ERROR -> could not get list -> exit" >> $scriptlog 2>&1
    8283         rm -v $todofile >> $scriptlog 2>&1
     
    105106   path="$datapath/star/$no/$no2"
    106107   starfile=$path/star$no2.root
    107    fillstarlogpath=$logpath/fillstar/$no
    108    echo "fillstarlogpath: "$fillstarlogpath >> $scriptlog 2>&1
     108   fillstarlogpath=$logpath/$program/$no
     109   echo "$programlogpath: "$fillstarlogpath >> $scriptlog 2>&1
    109110   makedir $fillstarlogpath >> $scriptlog 2>&1
    110    fillstarlog=$fillstarlogpath/fillstar-$sequence.log
     111   fillstarlog=$fillstarlogpath/$program-$sequence.log
    111112
    112    echo "run fillstar for sequence $sequence" >> $scriptlog 2>&1
     113   echo "run $program for sequence $sequence" >> $scriptlog 2>&1
    113114   check2=`root -q -b $macrospath/fillstar.C+\("\"$starfile\""\,kFALSE\) | tee $fillstarlog | grep int | sed -e 's/(int)//'`
    114115   case $check2 in
    115116      1)   echo "check2=$check2 -> everything ok " >> $scriptlog 2>&1
    116            echo "-> inserting the status for fillstar for sequence $sequence into the db" >> $scriptlog 2>&1
    117            setstatuslogpath=$logpath/setstatus/fillstar/$no
    118            makedir $setstatuslogpath >> $scriptlog 2>&1
    119            setstatuslog=$setstatuslogpath/setstatus-fillstar-$no2.log
    120 
    121            check4=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog | grep int | sed -e 's/(int)//'`
    122            case $check4 in
    123              1)   echo "check4=$check4 -> everything ok, status has been set" >> $scriptlog 2>&1;;
    124              *)   echo "check4=$check4 -> ERROR -> step could not be set" >> $scriptlog 2>&1;;
    125            esac
     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
    126125          ;;
    127126      *)   echo "check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;;
Note: See TracChangeset for help on using the changeset viewer.