in reply to Access system ENV variables from within CGI Script

How is Apache started? .profile only gets executed by ksh if it is a login shell (then it executes .kshrc). So, for example, if it is started at system boot time that is not a login shell.
On ksh88 non-login shells execute .kshrc only, but on ksh93 only interactive shells execute .kshrc.
So, depending on the version of ksh you are using, you might be able to use .kshrc, but I can't guarantee it.
To find the version of ksh: set -o emacs, then <CTRL>V.
  • Comment on Re: Access system ENV variables from within CGI Script

Replies are listed 'Best First'.
Re^2: Access system ENV variables from within CGI Script
by Anonymous Monk on Oct 12, 2007 at 12:30 UTC
    Thanks for the tip, following your advice the version number reports as being Version M-11/16/88i.
Re^2: Access system ENV variables from within CGI Script
by Anonymous Monk on Oct 12, 2007 at 12:35 UTC
    apache is started ./apachectl start, sorry, I forgot to mention this.