I have changed openserctl to do the computation of
GW_IP=$(($1+$2*256+$3*65536+$4*16777216)) within mysql query. The
version for dbtext uses "expr" (more portable) if available.
It is available only on development (frozen) branch.
Cheers,
Daniel
On 06/09/06 17:55, Kelvin Williams wrote:
Changed the /bin/sh to /bin/bash at the beginning of
the script and it
works.
Kw
-----Original Message-----
From: Daniel-Constantin Mierla [mailto:daniel@voice-system.ro]
Sent: Friday, June 09, 2006 10:31 AM
To: Ovidiu Sas
Cc: Kelvin Williams; users(a)openser.org
Subject: Re: [Users] openserctl error.
It seems that only bash understands expressions like
$(($1+$2*256+$3*65536+$4*16777216)). Maybe using expr is better.
Kevin can you confirm that 'expr' is present in Solaris 10 box? On
debian it is part of coreutils.
Cheers,
Daniel
On 06/09/06 17:28, Ovidiu Sas wrote:
What shell are you using?
It looks like your shell doesn't understand the setting of GW_IP syntax.
-ovi
On 6/8/06, Kelvin Williams <kelvin-lists(a)williamschadwell.com> wrote:
This is a new OpenSER installation on a Solaris 10 box.
Any time we call openserctl we receive the following error:
/usr/local/sbin/openserctl: syntax error at line 1026: `GW_IP=$'
unexpected
Line 26 of openserctl reads:
GW_IP=$(($1+$2*256+$3*65536+$4*16777216))
Any advice would be greatly appreciated!
Thanks,
kw
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users