westrock2000 has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to use a path from the Bash terminal in my Perl script. When I run the script from the command line as the user, the scripts picks up the variable correctly
$cwd = $ENV{'DYNBLDHOME'};
But when I run the script through Apache (as the same user) $cwd is empty
The environmental DYNBLDHOME is set in ~/.bashrc
I'm not sure where the disconnect is, it is Perl or Apache that is the issue?
I didn't know what to search for, I saw something about mod_env.so in Apache, and that is already enabled
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Getting system enviornmentals when running CGI
by flexvault (Monsignor) on Sep 21, 2015 at 02:51 UTC | |
Re: Getting system enviornmentals when running CGI
by dsheroh (Monsignor) on Sep 21, 2015 at 07:23 UTC | |
by Anonymous Monk on Sep 21, 2015 at 17:29 UTC | |
Re: Getting system enviornmentals when running CGI
by Anonymous Monk on Sep 20, 2015 at 23:58 UTC | |
Re: Getting system enviornmentals when running CGI
by Anonymous Monk on Sep 22, 2015 at 00:41 UTC |
Back to
Seekers of Perl Wisdom