[Serusers] serctl: syntax error at line 923: `attempt=$' unexpected
chris
chris at fivestartel.com
Tue Jul 26 03:11:39 CEST 2005
hi andrei,
serctl is now working, i changed
#!/bin/sh
to
#!/bin/bash
:)
thnks.
----- Original Message -----
From: "Andrei Pelinescu-Onciul" <andrei at iptel.org>
To: "chris" <chris at fivestartel.com>
Cc: "Jan Janak" <jan at iptel.org>; <serusers at 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 at 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
More information about the sr-users
mailing list