Changeset 9163 for trunk/MagicSoft/Mars/datacenter/scripts/sourcefile
- Timestamp:
- 11/14/08 11:35:11 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/sourcefile
r9135 r9163 112 112 jmscriptlog=$runlogpath/jobmanager`date +%F`.log 113 113 steps=$mars/resources/steps.rc 114 sqlrc=$mars/sql.rc 114 115 # resetting values 115 116 pno=0 … … 228 229 function getdbsetup() 229 230 { 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:\/\///'` 234 235 # echo "setup: " 235 236 # echo " db: "$db
Note:
See TracChangeset
for help on using the changeset viewer.