Changeset 18701 for trunk/DataCheck/Sourcefile.sh
- Timestamp:
- 12/21/16 12:37:49 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Sourcefile.sh
r18694 r18701 173 173 if [ "$sqlpw" != "" ] 174 174 then 175 pwfile="--defaults-file=$sqlpw"175 sqlpwfile="--defaults-file=$sqlpw" 176 176 pw="" 177 177 fi … … 188 188 getdbsetup 189 189 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 "` 191 191 then 192 192 printprocesslog "ERROR could not query DB "$db" on host "$ho" with user "$us … … 346 346 # execute query 347 347 #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` 349 349 then 350 350 printprocesslog "ERROR could not query number of processes from db (program: $program, function getstatus)"
Note:
See TracChangeset
for help on using the changeset viewer.