On Tue, 2006-20-06 at 11:49 +0200, sfantar wrote:
>   Why are there differences between the output of the CGI mentioned below
>   which displays the content of $ENV{HOME} et $ENV{PATH}?

CGIs are forked off of the web server, which normally runs under a
different user. Add these lines to your CGI to see who is running the
script:

  print "<p>login: ", getlogin, </p>\n";
  print "<p>uid: ", $<, "</p>\n";
  print "<p>name: ", getpwuid($<), "</p>\n";


-- 
__END__

Just my 0.00000002 million dollars worth,
   --- Shawn

"For the things we have to learn before we can do them, we learn by doing them."
  Aristotle

* Perl tutorials at http://perlmonks.org/?node=Tutorials
* A searchable perldoc is at http://perldoc.perl.org/



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to