Hi,
Rob Conway:
> Thanks for your help on this one Matthias,
>
> ERROR TRAP
>
> if [ -z "$TEMPtest" -o "$TEMPtest" -gt 50 -o "$TEMPtest" -lt 5 ]; then
>
> I did a couple of tests and it seems that -gt and -lt will still complain
> and not execute the "if" on the basis there is not an integer to compare
> against even though the first -z maybe true.
*Sigh*
You can use ] || [ in place of the first "-o", like you did before.
> A better solution maybe to somehow use the ruturn value of the owread to
> somehow set the value to "u".
owread ...
=>
( owread ... || echo "9999" )
> solenoids a couple of times a week and I think it depends on which value is
> being scanned at that exact moment where the error gets induced.
>
Definitely.
> ----- Original Message -----
Please don't. We all got it already.
--
Matthias Urlichs | {M:U} IT Design @ m-u-it.de | [EMAIL PROTECTED]
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
- -
I firmly believe there is more to life than money, beer, and sex. I just
don't know what it is.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers