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

    r7460 r7465  
    3838
    3939user=`whoami`
     40program=fillcallisto
    4041source /home/$user/Mars/datacenter/scripts/sourcefile
    4142
     
    4950
    5051todofile=$listpath/ToDo-$table-$column.txt
    51 getstatuslogpath=$logpath/getstatus/fillcallisto/$year
    52 getstatuslog=$getstatuslogpath/getstatus-fillcallisto-$datetime.log
     52getstatuslogpath=$logpath/getstatus/$program/$year
     53getstatuslog=$getstatuslogpath/getstatus-$program-$datetime.log
    5354
    54 scriptlogpath=$logpath/run/fillcallisto/`date +%Y/%m/%d`
     55scriptlogpath=$logpath/run/$program/`date +%Y/%m/%d`
    5556makedir $scriptlogpath
    56 scriptlog=$scriptlogpath/runfillcallisto-$datetime.log
     57scriptlog=$scriptlogpath/run$program-$datetime.log
    5758
    5859date >> $scriptlog 2>&1
     
    6869    0)   echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;;
    6970    1)   echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1
    70          echo "-> fillcallisto is running -> exit" >> $scriptlog 2>&1
     71         echo "-> $program is running -> exit" >> $scriptlog 2>&1
    7172         date  >> $scriptlog 2>&1
    7273         exit;;
     
    7980
    8081case $check0 in
    81     1)   echo "check0=$check0 -> everything ok -> run fillcallisto" >> $scriptlog 2>&1;;
     82    1)   echo "check0=$check0 -> everything ok -> run $program" >> $scriptlog 2>&1;;
    8283    *)   echo "check0=$check0 -> ERROR -> could not get list -> exit" >> $scriptlog 2>&1
    8384         rm -v $todofile >> $scriptlog 2>&1
     
    106107   signalfile=$path/signal$no2.root
    107108   calibfile=$path/calib$no2.root
    108    fillcallistologpath=$logpath/fillcallisto/$no
    109    echo "fillcallistologpath: "$fillcallistologpath >> $scriptlog 2>&1
     109   fillcallistologpath=$logpath/$program/$no
     110   echo "$programlogpath: "$fillcallistologpath >> $scriptlog 2>&1
    110111   makedir $fillcallistologpath >> $scriptlog 2>&1
    111112   fillcaliblog=$fillcallistologpath/fillcalib-$sequence.log
    112113   fillsignallog=$fillcallistologpath/fillsignal-$sequence.log
    113114
    114    echo "run fillcallisto for sequence $sequence" >> $scriptlog 2>&1
     115   echo "run $program for sequence $sequence" >> $scriptlog 2>&1
    115116   echo "run fillcalib..." >> $scriptlog 2>&1
    116117   check1=`root -q -b $macrospath/fillcalib.C+\("\"$calibfile\""\,kFALSE\) | tee $fillcaliblog | grep int | sed -e 's/(int)//'`
     
    125126   case $check2 in
    126127      1)   echo "check2=$check2 -> everything ok " >> $scriptlog 2>&1
    127            echo "-> inserting the status for fillcallisto for sequence $sequence into the db" >> $scriptlog 2>&1
    128            setstatuslogpath=$logpath/setstatus/fillcallisto/$no
    129            makedir $setstatuslogpath >> $scriptlog 2>&1
    130            setstatuslog=$setstatuslogpath/setstatus-fillcallisto
    131 
    132            check4=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog-$sequence.log | grep int | sed -e 's/(int)//'`
    133            case $check4 in
    134              1)   echo "check4=$check4 -> everything ok, status has been set" >> $scriptlog 2>&1;;
    135              *)   echo "check4=$check4 -> ERROR -> step could not be set" >> $scriptlog 2>&1;;
    136            esac
     128           echo "-> inserting the status for $program for sequence $sequence into the db" >> $scriptlog 2>&1
     129           statustime="Now()"
     130           failed="NULL"
     131           starttime="NULL"
     132           failedtime="NULL"
     133           var1=$no
     134           var2=$sequence
     135           setstatus
    137136          ;;
    138137      *)   echo "check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;;
Note: See TracChangeset for help on using the changeset viewer.