<div>Thanks Ralph,</div><div><br></div>I found the issue. the writer tested using bash as his /bin/sh so when I ran in on my server /bin/sh is not bash. fixed that then it ran...  <div><br></div><div>Now I am getting a garbled sed command.... </div>
<div><br></div><div>sed: command garbled: 1,/---START---/d;$a[endmarker]\ndummy entry</div><div><br></div><div><br></div><div>More digging.</div><div><br></div><div>-Kevin<br><br><div class="gmail_quote">On Thu, Sep 27, 2012 at 11:12 AM, Ralph Mitchell <span dir="ltr"><<a href="mailto:ralphmitchell@gmail.com" target="_blank">ralphmitchell@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p>Sounds like there's an empty variable in a test expression. Something like:</p>
<p>        if [ $x = $y ]; then<br>
             ......<br>
        fi</p>
<p>where either $x or $y is not set.  If those variables were put in double-quotes, at least you'd get an empty string.</p>
<p>Ralph Mitchell<br>
</p>
<div class="gmail_quote"><div><div class="h5">On Sep 27, 2012 10:59 AM, "Kevin King" <<a href="mailto:kc6ovd@gmail.com" target="_blank">kc6ovd@gmail.com</a>> wrote:<br type="attribution"></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div class="h5">
I am trying to get your script  (xymon-rclient.sh) running on my xymon and have hit some issue that must have something to do with my environment.<div><br></div><div><div>Wednesday, September 26, 2012 03:25:55 PM CDT: starting //usr/local/xymon/server/ext/xymon-rclient.sh</div>


<div>//usr/local/xymon/server/ext/xymon-rclient.sh: trap: bad trap</div><div>Wednesday, September 26, 2012 03:25:55 PM CDT: finished //usr/local/xymon/server/ext/xymon-rclient.sh (completed 0 out of 0)</div></div><div><br>


</div><div>I have ssh keys all setup and I can ssh to the client no problem. So I set the debug option them get this:</div><div><br></div><div>//usr/local/xymon/server/ext/xymon-rclient.sh: test: argument expected</div><div>


<br></div><div><br></div><div><br></div><div>the xymon server is solaris 10. and I am running xymon 4.3.10</div><div><br></div><div>-Kevin </div>
<br></div></div>_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
<br></blockquote></div>
</blockquote></div><br></div>