<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 17 October 2014 15:16, Tracy Di Marco White <span dir="ltr"><<a href="mailto:gendalia@iastate.edu" target="_blank">gendalia@iastate.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">If I restart xymon while using tcsh, for example, suddenly my ntp test breaks,</div></blockquote><div><br></div><div>Is this a client or server?  How did you restart xymon?  My init script has "#! /bin/sh" in the first line, so I don't think it should matter what shell I run it from.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>For the moment, I've hard coded 'export SHELL=/bin/sh' in the startup script for xymon, but the assumption shouldn't be made that $SHELL is a /bin/sh derivative.</div></div></blockquote><div><br></div><div>Curiously, the code that runs the "ntpdate" command is this:</div><div><br></div><div>  execl("/bin/sh", "sh", "-c", cmd, NULL);<br></div><div><br></div><div>where "cmd" is the command (passed into the run_command() function.  So, I'm perplexed why it should matter what shell is running.  As far as I can tell, none of Xymon's binaries or scripts reference $SHELL.</div><div><br></div><div>Cheers</div><div>Jeremy</div><div><br></div></div></div></div>