Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Unix Question about Environment Variables

by perigeeV (Hermit)
on Jul 20, 2002 at 22:26 UTC ( [id://183690]=note: print w/replies, xml ) Need Help??


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.


Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://183690]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2024-03-28 10:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found