<?xml version="1.0" encoding="windows-1252"?>
<node id="1002372" title="Re^2: use lib in cgi env" created="2012-11-05 12:37:42" updated="2012-11-05 12:37:42">
<type id="11">
note</type>
<author id="647953">
sundialsvc4</author>
<data>
<field name="doctext">
&lt;p&gt;
The problem here is how (and whether) that environment-variable will be set when the CGI/FastCGI script executes. &amp;nbsp; The web-server &lt;i&gt;e.g.&lt;/i&gt; Apache sets up a more limited environment so that the runtime behavior of the script is more certain and less subject to undue influence.
&lt;/p&gt;&lt;p&gt;
In the specific case of a CGI script destined for a known implementation target, I find that setting fixed paths &lt;em&gt;is&lt;/em&gt; a reasonable and perhaps desirable technique. &amp;nbsp; You know what the right answers are and always will be. &amp;nbsp; And, as noted above, I isolate it into &lt;u&gt;one&lt;/u&gt; root script which is known to have global influence upon the rest of it. &amp;nbsp; Your Mileage May Vary&amp;trade;, but in the specific case I described above, what I chose to do was a most-deliberate choice that did fully consider what you suggest.
&lt;/p&gt;</field>
<field name="root_node">
1002326</field>
<field name="parent_node">
1002356</field>
</data>
</node>
