LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   what option to get "lynx" to output -source to STDOUT? (https://www.linuxquestions.org/questions/linux-software-2/what-option-to-get-lynx-to-output-source-to-stdout-4175421302/)

Skaperen 08-09-2012 06:40 PM

what option to get "lynx" to output -source to STDOUT?
 
It's writing the URL contents to a file. Not what I want, since I don't have space for it. How do I get "lynx -source" to write directly to STDOUT? It used to do this a few years ago. Something changed.

An alternative is any other program that will SILENTLY (no other output during transfer) write the HTTP contents (not headers) directly to STDOUT. I tried curl, links, and wget, and these all fail, producing garbage on the screen even thoough STDOUT is piped to another process in the command line.

Redirecting STDERR is NOT an option for silence. I do want error messages if there is a failure.

SunlightRider 08-09-2012 11:46 PM

lynx -source google.com , outputs to STDOUT.

lynx ver: 2.8.7rel.2

Skaperen 08-10-2012 12:13 AM

I have Lynx Version 2.8.8dev.3 (25 Apr 2010) and it writes to a file when the only option is -source. Now it is doing this with a gzipped tarball, so maybe it thinks that is unsafe to output. But this is a pipeline to gunzip and tar, so that should not matter.

Skaperen 08-10-2012 12:46 AM

I switched to using "curl -s http://host/path". This is working. I don't understand why lynx needs to write to a file.


All times are GMT -5. The time now is 09:54 PM.