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@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@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
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@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@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
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@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@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@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users