Changeset 18762
- Timestamp:
- 02/18/17 14:08:40 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Sourcefile.sh
r18761 r18762 188 188 getdbsetup 189 189 printprocesslog "DEBUG sendquery QUERY: "$query 190 if ! val=`mysql $sqlpwfile -s -u $us $pw --host=$ho $db -e " $query "` 191 then 192 printprocesslog "ERROR could not query DB "$db" on host "$ho" with user "$us 193 #printprocesslog "ERROR could not query db (program: $program, function sendquery)" 194 #return 1 #why??? 190 val=`mysql $sqlpwfile -s -u $us $pw --host=$ho $db -e " $query " 2>&1` 191 checkmysql=`echo $?` 192 if [ $checkmysql -gt 0 ] 193 then 194 printprocesslog "ERROR could not query DB "$db" on host "$ho" with user "$us" (program: $program, function sendquery) " 195 printprocesslog "MYSQLERROR [returncode: "$checkmysql"] "$val 196 error=`echo $val | grep -E -o 'ERROR [1-9]{1,4}' | grep -E -o '[1-9]{1,4}'` 197 # here possible reaction to mysql error 195 198 finish 196 199 fi
Note:
See TracChangeset
for help on using the changeset viewer.