http://qs1969.pair.com?node_id=183690


in reply to Unix Question about Environment Variables

prompt$ export REMOTE_USER="foo"

But I doubt that's what you want to do. That just sets it for the current and any child shells invoked. If you are looking for the string as passed by a webserver to your CGI script, then you are limited to pages that are protected by an .htaccess file.
No .htaccess, no $ENV{'REMOTE_USER'}.


Replies are listed 'Best First'.
Re: Re: Unix Question about Environment Variables
by kidd (Curate) on Jul 20, 2002 at 22:29 UTC
    But...how about the other variables? Do I use the same syntax?

      The %ENV hash gives you all the environment variables. But I think we should stop right now and take a look at Ovid's splendid CGI Course.