Changeset 9129 for trunk/MagicSoft/Mars/datacenter/scripts/sourcefile
- Timestamp:
- 08/21/08 18:49:35 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/sourcefile
r9122 r9129 231 231 pw=`grep Password $mars/sql.rc | grep -v '#' | sed -e 's/Password: //' -e 's/ //g'` 232 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:\/\///'` 233 234 # echo "setup: " 234 235 # echo " db: "$db 235 236 # echo " pw: "$pw 236 237 # echo " us: "$us 238 # echo " ho: "$ho 237 239 } 238 240 … … 284 286 fi 285 287 echo " QUERY: "$query 286 if ! process=`mysql -s -u $us --password=$pw --host= vela$db -e " $query "`288 if ! process=`mysql -s -u $us --password=$pw --host=$ho $db -e " $query "` 287 289 then 288 290 echo "ERROR could not query processes from db -> exit" … … 321 323 query=$query" group by $column " 322 324 # echo " QUERY: "$query 323 if ! numproc=`mysql -s -u $us --password=$pw --host= vela$db -e " $query "`325 if ! numproc=`mysql -s -u $us --password=$pw --host=$ho $db -e " $query "` 324 326 then 325 327 echo "ERROR could not query number of todo proceses from db -> continue" … … 373 375 done 374 376 echo " QUERY: "$query 375 if ! mysql -s -u $us --password=$pw --host= vela$db -e " $query "377 if ! mysql -s -u $us --password=$pw --host=$ho $db -e " $query " 376 378 then 377 379 echo "ERROR could not insert status into db -> exit" … … 386 388 { 387 389 getdbsetup 388 if ! val=`mysql -s -u $us --password=$pw --host= vela$db -e " $query "`390 if ! val=`mysql -s -u $us --password=$pw --host=$ho $db -e " $query "` 389 391 then 390 392 printprocesslog "ERROR could not query db (program: $program, function sendquery)"
Note:
See TracChangeset
for help on using the changeset viewer.