[xymon] DEBUG=N: is not an identifier

Jayanta Kundu jayantak007 at gmail.com
Mon Sep 13 11:22:43 CEST 2010


Hi Vernon,

First of all I would like to say thank for your early reply.



If I change the name of the file from “ABL_CB_ERROR.sh” to
“ABL_CB_ERROR.ksh” and execute the same via “$./runclient.sh start” it’s
giving same error in the log file like:

/export/home/xymon/client/script/ABL_CB_ERROR.sh: DEBUG=N: is not an
identifier



“ABL_CB_ERROR.ksh” file look like:

Version=1.0a

# Debug-Mode ? (y/Y/N)

[[ "$1" = "Y" ]] || [[ "$1" = "y" ]] && export DEBUG="$1" || export
DEBUG="N"

- - - - - - - -- - - - - - - -- - - - - - - -

- - - - - - - -- - - - - - - -- - - - - - - -

- - - - - - - -- - - - - - - -- - - - - - - -
With Regards,
Jayanta.

On Mon, Sep 13, 2010 at 1:45 PM, Vernon Everett <everett.vernon at gmail.com>wrote:

> Hi
>
> sh does not support the syntax
> export VARIABLE=value
> This is a ksh and bash syntax.
>
> If you are using sh you need to do it as two commands.
> DEBUG="N"
> export DEBUG
>
> Regards
>      Vernon
>
>
>
> On Mon, Sep 13, 2010 at 3:29 PM, Jayanta Kundu <jayantak007 at gmail.com>wrote:
>
>> Hi Guys,
>>
>>
>>
>> I am writing my own KPI(named “ABL_CB_ERROR.sh”) and keep it into the
>> /export/home/xymon /client/script/ path and configure it into
>> “clientlaunch.cfg” file in Agent(Client) side and also configure bb-host
>> configuration file in the Collector(Server) side.
>>
>> In the “ABL_CB_ERROR.sh” file very first line it is giving following
>> error:
>>
>> /export/home/xymon/client/script/ABL_CB_ERROR.sh: DEBUG=N: is not an
>> identifier
>>
>>
>>
>>  “ABL_CB_ERROR.sh” file look like:
>>
>> Version=1.0a
>>
>> # Debug-Mode ? (y/Y/N)
>>
>> [[ "$1" = "Y" ]] || [[ "$1" = "y" ]] && export DEBUG="$1" || export
>> DEBUG="N"
>>
>> - - - - - - - -- - - - - - - -- - - - - - - -
>>
>> - - - - - - - -- - - - - - - -- - - - - - - -
>>
>> - - - - - - - -- - - - - - - -- - - - - - - -
>>
>>
>>
>> How can I resolve this issue? Kindly provide me the solution.
>>
>>
>>
>> With Regards,
>> Jayanta.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20100913/155de829/attachment.html>


More information about the Xymon mailing list