[plug] problem found in "if" statement

Jon Miller jlmiller at mmtnetworks.com.au
Wed Aug 27 09:13:12 WST 2003


I've found a problem in an "if" statement and cannot find a fix.  The statement is
if [ "$vMLSTAT" >= 0 ]; then
  .....
  .....

fi
 I'm getting a unary operator expected.  I've tried also the following and got a error message stating that [ : : integer expression expected
if [ "$vMLSTAT" -lt 0 ]; then
   ......
   ......
fi

Any ideas would be appreciated.

Thanks

Jon L. Miller, MCNE, CNS
Director/Sr Systems Consultant
MMT Networks Pty Ltd
http://www.mmtnetworks.com.au

"I don't know the key to success, but the key to failure
 is trying to please everybody." -Bill Cosby






More information about the plug mailing list