Ignore:
Timestamp:
03/15/17 22:32:26 (8 years ago)
Author:
Daniela Dorner
Message:
in case of mysql-warnings skript is also stopped now (after the last changes they would have stayed unnoticed)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/Sourcefile.sh

    r18774 r18782  
    118118   finish
    119119fi
    120 if ! ls $sqlrc >/dev/null
     120if ! ls $sqlrc >/dev/null 2>&1 || [ "$sqlrc" = "" ]
    121121then
    122122   echo "Can't find sql.rc ($sqlrc)"
     
    229229      val=
    230230      finish
     231   else
     232      warning=`echo $val | grep -o -E 'mysql: \[Warning\]'`
     233      if [ "$warning" != "" ]
     234      then
     235         printprocesslog "WARN possible problem to query DB "$db" on host "$ho" with user "$us" (program: $program, function sendquery) "
     236         printprocesslog "MYSQLWARN [returncode: "$checkmysql"] "$val
     237         val=
     238         finish
     239      fi
    231240   fi
    232241   if [ "$val" = "NULL" ]
Note: See TracChangeset for help on using the changeset viewer.