Xymon Mailing List Archive search

error on script

list Henrik Størner
Wed, 07 Dec 2011 13:36:52 +0100
Message-Id: <5edae3e3c11082cb9c5c2cc59b6871ab@localhost>

On Wed, 7 Dec 2011 12:08:54 +0400, "Sailesh"
<user-603c06b12dd1@xymon.invalid> wrote:
I have an script for checking my database. I am getting an error but I
am
unable to trouble shoot.

/xymon/client/ext/bb-roracle.ksh[58]: (VAR0+=2),(VAR1+=2): syntax error
/xymon/client/ext/bb-roracle.ksh[58]: (VAR0+=2),(VAR1+=2): syntax error
bash-3.00#
The script appears to use the Korn Shell (ksh), so you'll have to install
that for it to work. From the command prompt, it seems you are running
Bash.

On Linux, you can usually install the "ksh" or "pdksh" packages to get a
working ksh. And make sure the first line of the script points to your
"ksh" binary, like

  #!/bin/ksh

if it is installed in /bin


Regards,
Henrik