Ignore:
Timestamp:
12/21/16 12:37:49 (8 years ago)
Author:
Daniela Dorner
Message:
fixed bug (variable pwfile occured twice -> renamed)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/Sourcefile.sh

    r18694 r18701  
    173173   if [ "$sqlpw" != "" ]
    174174   then
    175       pwfile="--defaults-file=$sqlpw"
     175      sqlpwfile="--defaults-file=$sqlpw"
    176176      pw=""
    177177   fi
     
    188188   getdbsetup
    189189   printprocesslog "DEBUG sendquery QUERY: "$query
    190    if ! val=`mysql $pwfile -s -u $us $pw --host=$ho $db -e " $query "`
     190   if ! val=`mysql $sqlpwfile -s -u $us $pw --host=$ho $db -e " $query "`
    191191   then
    192192      printprocesslog "ERROR could not query DB "$db" on host "$ho" with user "$us
     
    346346   # execute query
    347347   #numproc=`sendquery `#cannot be done with sendquery, because of row counting
    348    if ! numproc=`mysql $pwfile -s -u $us $pw --host=$ho $db -e " $query " | wc -l`
     348   if ! numproc=`mysql $sqlpwfile -s -u $us $pw --host=$ho $db -e " $query " | wc -l`
    349349   then
    350350      printprocesslog "ERROR could not query number of processes from db (program: $program, function getstatus)"
Note: See TracChangeset for help on using the changeset viewer.