RE: grep pattern problem

2005-04-26 Thread TapasranjanMohapatra
-Original Message- From: Ing. Branislav Gerzo [mailto:[EMAIL PROTECTED] Sent: Tue 4/26/2005 8:51 PM To: beginners-cgi@perl.org Subject: Re: grep pattern problem TapasranjanMohapatra [T], on Monday, April 25, 2005 at 17:51 (+0530) wrote: T> The directory and files have all permissi

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

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).

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

printing output of a command

2005-02-20 Thread TapasranjanMohapatra
All, i am new to cgi. Please let me know why I dont get the data printed? I have abc.cgi in /var/www/cgi-bin When the $cmd is "ls" I get the filenames when I visit localhost/cgi-bin/abc.cgi But when the $cmd is the snmpquerry, I get nothing on the page, though I get the desired output(value of sy