volka wrote:If you're using an apache server and you want to set this environment variable only for the cgi you might be interested in the SetEnv directive.
thanks for the info.
Environment variables may be passed from the shell which invoked the httpd process.
seems to me that is for how to setup Environment variables for the httpd, ie, whole site and cgis, not a single CGI.
That you can do with all processes in all shells that support the feature like e.g. bash
http://www.gnu.org/software/bash/manual/bashref.html#SEC51 wrote:The environment for any simple command or function may be augmented temporarily by prefixing it with parameter assignments, as described in 3.4 Shell Parameters. These assignment statements affect only the environment seen by that command.