<div dir="ltr">What OS?  Can you show the init script?<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 16 January 2013 06:44, Michael Beatty <span dir="ltr"><<a href="mailto:Michael.Beatty@sherwin.com" target="_blank">Michael.Beatty@sherwin.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I've got an init script that is starting up the xymon client. It starts, and runs, however it doesn't appear to have any access to any environment variables.  If I restart the client from a shell, it takes off and runs fine.  I've got echo statements in the init script to display some of the environment variables I need, and they are displaying fine at boot time.  It just seems that xymon doesn't have access to them when it is running.  What has me really confused is that I'm even exporting the variable from a file directly from the xymon script.<br>


<br>
For example, in the init script, I 'echo $HOST'  The host name shows up in the log<br>
I have a perl script that clientlaunch calls, I have a variable "my $host = $ENV{"HOST"}.<br>
<br>
I am printing the "HOST" variable out to the log file when the script runs.  If I start the xymon client from a shell, the HOST variable prints out.  However, it doesn't print out (just a blank) if the xymon client starts via the init script.<span class="HOEnZb"><font color="#888888"><br>


<br>
<br>
<br>
<br>
-- <br>
Michael Beatty<br>
<br>
______________________________<u></u>_________________<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/<u></u>mailman/listinfo/xymon</a><br>
</font></span></blockquote></div><br></div>