in reply to Re: Access system ENV variables from within CGI Script
in thread Access system ENV variables from within CGI Script

A .profile file is not a "config file". It is an executable program which is run by a shell language interpreter. The only way to faithfully reproduce arbitrary settings made via executing a .profile shell program is by running that shell program or by writing a shell program interpreter. Of course, simple settings can be extracted via crafty regular expressions.

Replies are listed 'Best First'.
Re^3: Access system ENV variables from within CGI Script
by arcnon (Monk) on Oct 12, 2007 at 15:33 UTC
    wow I always thought that /etc/profile.d was the exe and that when run by the terminal loaded/ran the .profile.