[ previous ] [ next ] [ threads ]
 From:  Forest Bond - Logic Supply <forest dot bond at logicsupply dot com>
 To:  Alex M <radiussupport at lrcommunications dot net>
 Cc:  Monowall Support List <m0n0wall at lists dot m0n0 dot ch>
 Subject:  Re: bash scripting question about if[]
 Date:  Fri, 26 Jan 2007 08:40:37 -0500
On Thu, Jan 25, 2007 at 08:51:29PM -0500, Alex M wrote:
> I need to do double logic and no matter what I do im getting problem with
> operator undefined?

Maybe try this:

if [ $AP_ONTIME -eq 1 ]; then
  if [ $z -ne 0 ]; then
    echo "ALERT: your network has $z AP gone offline"
    # If ontime notification is enabled lets send sockets to
    # notify about equipment failure