Re: What is the reason for different outputs for a cgi script run from a browser and run from the command line?

2006-06-20 Thread Mr. Shawn H. Corey
On Tue, 2006-20-06 at 13:58 +0200, sfantar wrote: > "CGIs are forked off of the web server, which normally runs under a > "different user." > > I understand the fact that's the CGIs are run by a different user. > Is this user the same as the one who launched Apache? > Maybe, it depends on the co

Re: What is the reason for different outputs for a cgi script run from a browser and run from the command line?

2006-06-20 Thread sfantar
Mr. Shawn H. Corey a écrit : 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.

Re: What is the reason for different outputs for a cgi script run from a browser and run from the command line?

2006-06-20 Thread sfantar
Owen Cook a écrit : On Tue, 20 Jun 2006, sfantar wrote: David Dorward a écrit : On Tue, Jun 20, 2006 at 10:25:33AM +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}? The environment the webse

Re: What is the reason for different outputs for a cgi script run from a browser and run from the command line?

2006-06-20 Thread Owen Cook
On Tue, 20 Jun 2006, sfantar wrote: > David Dorward a écrit : > > On Tue, Jun 20, 2006 at 10:25:33AM +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}? > > > > The environment the webs

Re: What is the reason for different outputs for a cgi script run from a browser and run from the command line?

2006-06-20 Thread sfantar
David Dorward a écrit : On Tue, Jun 20, 2006 at 10:25:33AM +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}? The environment the webserver runs is different to the environment your shell runs.

Re: What is the reason for different outputs for a cgi script run from a browser and run from the command line?

2006-06-20 Thread sfantar
sfantar a écrit : Charles K. Clarkson a écrit : sfantar wrote: : In the apache's error log, here is what's written : : : : [error] HTML::Template->new() : Cannot open included file test.tmpl : : file not found. Looks like the template cannot be found. Use the full path to test.tmpl in

Re: What is the reason for different outputs for a cgi script run from a browser and run from the command line?

2006-06-20 Thread David Dorward
On Tue, Jun 20, 2006 at 10:25:33AM +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}? The environment the webserver runs is different to the environment your shell runs. -- David Dorward

What is the reason for different outputs for a cgi script run from a browser and run from the command line?

2006-06-20 Thread sfantar
Charles K. Clarkson a écrit : sfantar wrote: : In the apache's error log, here is what's written : : : : [error] HTML::Template->new() : Cannot open included file test.tmpl : : file not found. Looks like the template cannot be found. Use the full path to test.tmpl in the script. HTH,