RE: PATH problem

2005-04-25 Thread TapasranjanMohapatra
-Original Message- From: Lawrence Statton [mailto:[EMAIL PROTECTED] Sent: Mon 4/25/2005 8:19 PM To: TapasranjanMohapatra Cc: beginners-cgi@perl.org Subject: Re: PATH problem > > All, > My script goes like this... > -- > #!/usr/b

Re: PATH problem

2005-04-25 Thread Lawrence Statton
> > All, > My script goes like this... > -- > #!/usr/bin/perl > print "Content-type: text/html\n\n"; > $cmd = "cat file_one"; > $content = qx!$cmd!; > print "$content"; > -- > I have a case where file_one is not in the same di

Re: PATH problem

2005-04-25 Thread Wiggins d'Anconia
TapasranjanMohapatra wrote: > All, > My script goes like this... > -- > #!/usr/bin/perl > print "Content-type: text/html\n\n"; > $cmd = "cat file_one"; > $content = qx!$cmd!; > print "$content"; > -- You should not shell out t

Re: PATH problem

2005-04-25 Thread Sean Davis
Not sure this is the problem, but remember that when you run a CGI script from the command line, you are running as yourself. When you run it in the browser, you are running under whatever username and group the server is running with (and almost always this is different from yourself). So, y

Re: path problem

2005-04-09 Thread Peter Scott
On Fri, 08 Apr 2005 11:59:12 -0400, Shaun Fryer wrote: >> >use lib "$ENV{'DOCUMENT_ROOT'}/pdftest"; > > use lib is done at compile time. the %ENV isn't available til run-time IIRC. False: $ perl -le 'print grep /peter/ => @INC' $ perl -le 'use lib $ENV{HOME}; print grep /peter/ => @INC' /home/p

Re: path problem

2005-04-08 Thread Shaun Fryer
> >use lib "$ENV{'DOCUMENT_ROOT'}/pdftest"; use lib is done at compile time. the %ENV isn't available til run-time IIRC. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]