[Users] openserctl error.

Kelvin Williams kelvin-lists at williamschadwell.com
Fri Jun 9 16:55:37 CEST 2006


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 at voice-system.ro] 
Sent: Friday, June 09, 2006 10:31 AM
To: Ovidiu Sas
Cc: Kelvin Williams; users at 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 at 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 at openser.org
>> http://openser.org/cgi-bin/mailman/listinfo/users
>>
>>
>>
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>






More information about the sr-users mailing list