in reply to How do I get the environment variables for the owner of a CGI script?

Environment variables emanate from the user currently running the program. If you want to make a snapshot of a particular user's environment variables, save them somewhere when that user runs your code.
  • Comment on Re: How do I get the environment variables for the owner of a CGI script?

Replies are listed 'Best First'.
Re^2: How do I get the environment variables for the owner of a CGI script?
by jacques (Priest) on Oct 28, 2004 at 21:53 UTC
    I was thinking of getting the username of the owner and then logging in and doing a printenv - all from within the CGI script, but this seems exceedingly silly.
      Yes, but that's what you have to do.