> The overall problem is not if grep works or not, but why the
> output from the backticks does not show up in the cgi. I only put
> the grep in there to make the code read easier. $results does not
> have anything in the cgi with or without the grep. Below is the code
> again. Am I not
Hello Robert,
Friday, November 02, 2001, Robert Thompson <[EMAIL PROTECTED]> wrote:
RT> The overall problem is not if grep works or not, but why the
RT> output from the backticks does not show up in the cgi. I only put
RT> the grep in there to make the code read easier. $results does not
> > print `/usr/bin/dig -x $ip | /usr/bin/grep PTR`;
> >
> > does not.
>
> Works fine on my system, as it should. Are you sure your grep
> is in /usr/bin?
whereis grep
grep: /usr/5bin/grep /usr/bin/grep /usr/man/man1/grep.1v
/usr/5bin/grep also does not work.
g
--
To unsubscribe,
> -Original Message-
> From: Gary Hawkins [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 31, 2001 4:17 PM
> To: Robert Thompson; [EMAIL PROTECTED]
> Subject: RE: Outputting shell command to a browser
>
>
> Pipe not working with /usr/bin/grep.
ip`));
/g
> -Original Message-
> From: Robert Thompson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 31, 2001 5:31 PM
> To: [EMAIL PROTECTED]
> Subject: Outputting shell command to a browser
>
>
> Hello,
>
> I am working on a script that uses the
Hello,
I am working on a script that uses the backticks to execute a shell command,
and I want to output the results to a webpage. The problem I am having is that the
command I am running seems to take too long and the cgi does not return anything for
that variable. Is there a way to m