[cfgeeks] lynx/wget cgi
Liston Bias
bias at pobox.com
Fri Mar 16 13:24:43 EDT 2007
Thanks Kevin & Kevin for the help.
Was able to resolve with both tips. Redirecting the output of wget to a
temp file and then displace that helped a bit.
Additionally, I also was trying to display xml output to an html page.
On Fri, 16 Mar 2007, Kevin P. Inscoe wrote:
> On Fri Mar 16, 2007 at 10:35:52AM -0400, Liston Bias wrote:
>> I am trying to use something like lynx/wget in a cgi script.
>>
>> Based on parsing, I want to add comments to the top/bottom of webpage that
>> is present but I am only getting text for output.
>>
>> Does anyone know what I need here?
>>
>> -----------------------------------
>>
>> #!/bin/sh
>> echo ""Content-type: text/html"
>> echo
>> lynx -source "http://url/"
>
> The resulting html from the dumped page is overriding your current outout
> stream. You will need to parse out the body alone and just shell scripting
> alone won't be god for that. If you know PHP (and it's really easy to learn
> it) you can use the libcurl routines for this.
>
> --
> Kevin P. Inscoe Amateur Radio Call Sign: KE3VIN
> Deltona, FL 32738 28.9497N by 81.1952W
> kevin [at] inscoe [dot] org http://kevininscoe.com
> GPG 0x61288D53
> "The mysteries of the Universe are revealed when you break stuff."
> - Coop, Megas XLR
> _______________________________________________
> cfgeeks mailing list
> cfgeeks at mail.cfgeeks.org
> http://mail.cfgeeks.org/mailman/listinfo/cfgeeks
>
More information about the cfgeeks
mailing list