<html><body bgcolor="#FFFFFF"><div>Hello,</div><div><br></div><div>Remember to change the shell line to #!/bin/ksh, or wherever your ksh shell is kept.  That's needed so the current env knows which shell to use.</div><div><br></div><div>Regards,</div><div><br></div><div>Conrad<br><br>Sent from my iPod</div><div><br>On Sep 13, 2010, at 5:22 AM, Jayanta Kundu <<a href="mailto:jayantak007@gmail.com">jayantak007@gmail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div><div>Hi Vernon,</div>
<div class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3"></font> </div>
<div class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">First of all I would like to say thank for your early reply.</font></div>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3"> </font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Calibri">If I change the name of the file from <span style="mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri">“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: </span></font></font></p>

<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><span style="mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri"><font size="3"><font face="Calibri">/export/home/xymon/client/script/ABL_CB_ERROR.sh: DEBUG=N: is not an identifier</font></font></span></p>

<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><span style="mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri"><font face="Calibri" size="3"> </font></span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"><font face="Calibri"><span style="FONT-SIZE: 12pt; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: 'Times New Roman'">“ABL_CB_ERROR.ksh” file look like:</span><span style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman'"></span></font></p>

<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"><font face="Calibri"><span style="FONT-SIZE: 12pt; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: 'Times New Roman'">Version=1.0a</span><span style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman'"></span></font></p>

<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"><font face="Calibri"><span style="FONT-SIZE: 12pt; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: 'Times New Roman'"># Debug-Mode ? (y/Y/N)</span><span style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman'"></span></font></p>

<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"><font face="Calibri"><span style="FONT-SIZE: 12pt; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: 'Times New Roman'">[[ "$1" = "Y" ]] || [[ "$1" = "y" ]] && export DEBUG="$1" || export DEBUG="N"</span><span style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman'"></span></font></p>

<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"><font face="Calibri"><span style="FONT-SIZE: 12pt; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: 'Times New Roman'">- - - - - - - -- - - - - - - -- - - - - - - -</span><span style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman'"></span></font></p>

<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"><font face="Calibri"><span style="FONT-SIZE: 12pt; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: 'Times New Roman'">- - - - - - - -- - - - - - - -- - - - - - - -</span><span style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman'"></span></font></p>

<p class="MsoNormal" style="MARGIN: 0in 0in 6pt; LINE-HEIGHT: normal"><span style="FONT-SIZE: 12pt; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: 'Times New Roman'"><font face="Calibri">- - - - - - - -- - - - - - - -- - - - - - - -</font></span><span style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman'"></span></p>

<div>With Regards,</div>
<div>Jayanta.<br><br></div>
<div class="gmail_quote">On Mon, Sep 13, 2010 at 1:45 PM, Vernon Everett <span dir="ltr"><<a href="mailto:everett.vernon@gmail.com"><a href="mailto:everett.vernon@gmail.com">everett.vernon@gmail.com</a></a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi<br><br>sh does not support the syntax<br><span style="FONT-FAMILY: courier new,monospace">export VARIABLE=value</span><br>
This is a ksh and bash syntax.<br><br>If you are using sh you need to do it as two commands.<br><span style="FONT-FAMILY: courier new,monospace">DEBUG="N"</span><br style="FONT-FAMILY: courier new,monospace"><span style="FONT-FAMILY: courier new,monospace">export DEBUG</span><br>
<br>Regards<br><font color="#888888">     Vernon</font> 
<div>
<div></div>
<div class="h5"><br><br><br>
<div class="gmail_quote">On Mon, Sep 13, 2010 at 3:29 PM, Jayanta Kundu <span dir="ltr"><<a href="mailto:jayantak007@gmail.com" target="_blank"><a href="mailto:jayantak007@gmail.com">jayantak007@gmail.com</a></a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">Hi Guys,</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3"> </font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">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.</font></p>

<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">In the “ABL_CB_ERROR.sh” file very first line it is giving following error:</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">/export/home/xymon/client/script/ABL_CB_ERROR.sh: DEBUG=N: is not an identifier</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3"> </font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Calibri"><span> </span>“ABL_CB_ERROR.sh” file look like:</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">Version=1.0a</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3"># Debug-Mode ? (y/Y/N)</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">[[ "$1" = "Y" ]] || [[ "$1" = "y" ]] && export DEBUG="$1" || export DEBUG="N"</font></p>

<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">- - - - - - - -- - - - - - - -- - - - - - - -</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">- - - - - - - -- - - - - - - -- - - - - - - -</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">- - - - - - - -- - - - - - - -- - - - - - - -</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3"> </font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">How can I resolve this issue? Kindly provide me the solution.</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3"> </font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Calibri" size="3">With Regards,</font></p><span style="FONT-SIZE: 11pt; LINE-HEIGHT: 115%">Jayanta.</span> </blockquote></div><br></div></div></blockquote></div>
<br>
</div></blockquote></body></html>