hello,
i upgraded my ser 0.8.14 to ser 0.9.3 and when i run "serctl monitor" i encountered this error
/usr/local/sbin/serctl: syntax error at line 923: `attempt=$' unexpected
pls help.
On 15-07-2005 10:51, chris wrote:
hello,
i upgraded my ser 0.8.14 to ser 0.9.3 and when i run "serctl monitor" i encountered this error
/usr/local/sbin/serctl: syntax error at line 923: `attempt=$' unexpected
The line should read:
attempt=$(($attempt + 1))
correct ? It works for me, what shell version, OS, distribution do you have ?
Jan.
hi jan,
yes, the line is correct
attempt=$(($attempt + 1))
----- Original Message ----- From: "Jan Janak" jan@iptel.org To: "chris" chris@fivestartel.com Cc: serusers@lists.iptel.org Sent: Thursday, July 14, 2005 7:40 PM Subject: Re: [Serusers] serctl: syntax error at line 923: `attempt=$' unexpected
On 15-07-2005 10:51, chris wrote:
hello,
i upgraded my ser 0.8.14 to ser 0.9.3 and when i run "serctl monitor" i
encountered this error
/usr/local/sbin/serctl: syntax error at line 923: `attempt=$' unexpected
The line should read:
attempt=$(($attempt + 1))
correct ? It works for me, what shell version, OS, distribution do you have ?
Jan.
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)
pls help.
thnks in advance.
chris ----- Original Message ----- From: "Jan Janak" jan@iptel.org To: "chris" chris@fivestartel.com Cc: serusers@lists.iptel.org Sent: Thursday, July 14, 2005 7:40 PM Subject: Re: [Serusers] serctl: syntax error at line 923: `attempt=$' unexpected
On 15-07-2005 10:51, chris wrote:
hello,
i upgraded my ser 0.8.14 to ser 0.9.3 and when i run "serctl monitor" i
encountered this error
/usr/local/sbin/serctl: syntax error at line 923: `attempt=$' unexpected
The line should read:
attempt=$(($attempt + 1))
correct ? It works for me, what shell version, OS, distribution do you have ?
Jan.
On Jul 25, 2005 at 11:09, chris chris@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
hi andrei,
serctl is now working, i changed
#!/bin/sh
to
#!/bin/bash
:)
thnks.
----- Original Message ----- From: "Andrei Pelinescu-Onciul" andrei@iptel.org To: "chris" chris@fivestartel.com Cc: "Jan Janak" jan@iptel.org; serusers@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@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
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