hi andrei,
serctl is now working, i changed
#!/bin/sh
to
#!/bin/bash
:)
thnks.
----- Original Message -----
From: "Andrei Pelinescu-Onciul" <andrei(a)iptel.org>
To: "chris" <chris(a)fivestartel.com>
Cc: "Jan Janak" <jan(a)iptel.org>rg>; <serusers(a)lists.iptel.org>
Sent: Monday, July 25, 2005 6:45 PM
Subject: Re: [Serusers] serctl: syntax error at line 923: `attempt=$'
unexpected
On Jul 25, 2005 at 11:09, chris
<chris(a)fivestartel.com> wrote:
> hi jan,
>
> yes, the line is correct
>
> attempt=$(($attempt + 1))
>
> I'm using solaris 5.9 Generic_112233-07 sun4u sparc SUNW,Ultra-60
(solrais
9)
The serctl script uses some non-sh specific features (like
attempt=$(($attempt + 1))).
Try to change #!/bin/sh to #!/bin/bash (or #!/usr/local/bin/bash)
or try to replace all the lines of the form a=$(($a+1) with
a=`expr $a + 1`.
This will be fixed on cvs.
Andrei