Ignore:
Timestamp:
11/14/08 11:35:11 (16 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r9135 r9163  
    112112jmscriptlog=$runlogpath/jobmanager`date +%F`.log
    113113steps=$mars/resources/steps.rc
     114sqlrc=$mars/sql.rc
    114115# resetting values
    115116pno=0
     
    228229function getdbsetup()
    229230{
    230    db=`grep Database $mars/sql.rc | grep -v '#' | sed -e 's/Database: //' -e 's/ //g'`
    231    pw=`grep Password $mars/sql.rc | grep -v '#' | sed -e 's/Password: //' -e 's/ //g'`
    232    us=`grep User $mars/sql.rc | grep -v '#' | sed -e 's/User: //' -e 's/ //g'`
    233    ho=`grep URL $mars/sql.rc | grep -v '#' | sed -e 's/ //g' -e 's/URL:mysql:\/\///'`
     231   db=`grep Database $sqlrc | grep -v '#' | sed -e 's/Database: //' -e 's/ //g'`
     232   pw=`grep Password $sqlrc | grep -v '#' | sed -e 's/Password: //' -e 's/ //g'`
     233   us=`grep User $sqlrc | grep -v '#' | sed -e 's/User: //' -e 's/ //g'`
     234   ho=`grep URL $sqlrc | grep -v '#' | sed -e 's/ //g' -e 's/URL:mysql:\/\///'`
    234235#   echo "setup: "
    235236#   echo " db: "$db
Note: See TracChangeset for help on using the changeset viewer.