[Serusers] serctl: syntax error at line 923: `attempt=$' unexpected

Andrei Pelinescu-Onciul andrei at iptel.org
Mon Jul 25 12:45:04 CEST 2005


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