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/bin/perl > print "Con

Special Characters

2005-04-25 Thread TAO, NENGBING [AG/1000]
Hi, Is there a standard way to deal with special characters like (r), (c) etc in a CGI form and store the data in an Oracle database? Thanks! Nengbing -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

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

WML/WAP on Perl-CGI

2005-04-25 Thread Chandana
Hi , I need to develop/ migrate my exsiting wap site perl / perl cgi . Can i find proper tutorials on the NET ? Can someone give me proper URLS's ? and Where can i buy relavant Books ? Thank u , chandana

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

grep pattern problem

2005-04-25 Thread TapasranjanMohapatra
All, I am trying to print the output of grep command through cgi. When I do grep on a specific file I get the desired output, but while I try something like " grep -Ri pattern ../directoryname/ " I get no output when I run cgi(browser) though I get the output correctly run in commandline (perl).

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

PATH problem

2005-04-25 Thread TapasranjanMohapatra
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 directory. So I give the