Sorry Folks...another CGI newbie here.
I need access to one or more "Unix Environment Variables" in my CGI (Perl or Ksh) script.
I realiize that CGI takes several environment variables from the server...but I need access to UNIX user level environment variables.
If I execute a cgi script from the command line(ksh in this instance) that does:
echo $MYDBASE
The cgi script correctly answers: /mysys/mydbase
But when I run this from a web link I get nada - nothing.
I even made certain I was logged in as the same "user" when I tested the cgi.
I tried adding stuff to the .profile of and stopping/starting the web server process. No luck.
I see info on how to "exec" scipts as another user...but I think that just updates certain "permissions" and doesn't apply a user environment.
Anybody have an idea?
I need access to one or more "Unix Environment Variables" in my CGI (Perl or Ksh) script.
I realiize that CGI takes several environment variables from the server...but I need access to UNIX user level environment variables.
If I execute a cgi script from the command line(ksh in this instance) that does:
echo $MYDBASE
The cgi script correctly answers: /mysys/mydbase
But when I run this from a web link I get nada - nothing.
I even made certain I was logged in as the same "user" when I tested the cgi.
I tried adding stuff to the .profile of and stopping/starting the web server process. No luck.
I see info on how to "exec" scipts as another user...but I think that just updates certain "permissions" and doesn't apply a user environment.
Anybody have an idea?