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

    r7460 r7465  
    3737
    3838user=`whoami`
     39program=fillganymed
    3940source /home/$user/Mars/datacenter/scripts/sourcefile
    4041
     
    4849
    4950todofile=$listpath/ToDo-$table-$column.txt
    50 getstatuslogpath=$logpath/getstatus/fillganymws/$year
    51 getstatuslog=$getstatuslogpath/getstatus-fillganymed-$datetime.log
     51getstatuslogpath=$logpath/getstatus/$program/$year
     52getstatuslog=$getstatuslogpath/getstatus-$program-$datetime.log
    5253
    53 scriptlogpath=$logpath/run/fillganymed/`date +%Y/%m/%d`
     54scriptlogpath=$logpath/run/$program/`date +%Y/%m/%d`
    5455makedir $scriptlogpath
    55 scriptlog=$scriptlogpath/runfillganymed-$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 "-> fillganymed 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 fillganymed" >> $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/ganymed/$no/$no2"
    106107   ganymedfile=$path/ganymed$no2.root
    107    fillganymedlogpath=$logpath/fillganymed/$no
    108    echo "fillganymedlogpath: "$fillganymedlogpath >> $scriptlog 2>&1
     108   fillganymedlogpath=$logpath/$program/$no
     109   echo "$programlogpath: "$fillganymedlogpath >> $scriptlog 2>&1
    109110   makedir $fillganymedlogpath >> $scriptlog 2>&1
    110    fillganymedlog=$fillganymedlogpath/fillganymed-$dataset.log
     111   fillganymedlog=$fillganymedlogpath/$program-$dataset.log
    111112
    112    echo "run fillganymed for dataset $dataset" >> $scriptlog 2>&1
     113   echo "run $program for dataset $dataset" >> $scriptlog 2>&1
    113114   check2=`root -q -b $macrospath/fillganymed.C+\("\"$ganymedfile\""\,kFALSE\) | tee $fillganymedlog | 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 fillganymed for dataset $dataset into the db" >> $scriptlog 2>&1
    117            setstatuslogpath=$logpath/setstatus/fillganymed/$no
    118            makedir $setstatuslogpath >> $scriptlog 2>&1
    119            setstatuslog=$setstatuslogpath/setstatus-fillganymed-$no2.log
    120 
    121            check4=`root -q -b $macrospath/setstatus.C+\("\"$dataset\""\,"\"$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 dataset $dataset 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.