LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-09-2012, 07:40 PM   #1
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Xubuntu, Slackware, Amazon Linux
Posts: 1,905
Blog Entries: 20

Rep: Reputation: 126Reputation: 126
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.

Last edited by Skaperen; 08-09-2012 at 07:41 PM.
 
Old 08-10-2012, 12:46 AM   #2
SunlightRider
LQ Newbie
 
Registered: Aug 2012
Posts: 4

Rep: Reputation: Disabled
lynx -source google.com , outputs to STDOUT.

lynx ver: 2.8.7rel.2
 
Old 08-10-2012, 01:13 AM   #3
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Xubuntu, Slackware, Amazon Linux
Posts: 1,905

Original Poster
Blog Entries: 20

Rep: Reputation: 126Reputation: 126
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.
 
Old 08-10-2012, 01:46 AM   #4
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Xubuntu, Slackware, Amazon Linux
Posts: 1,905

Original Poster
Blog Entries: 20

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 7 12-19-2015 02:03 AM
unpredictable "delete" "move to trash" or "cut" file menu option dorianrenato Linux - General 3 11-28-2011 07:41 PM
square brackets in output of "ps aux" not matching output of "ps -ejH" alirezan1 Linux - Newbie 14 07-14-2010 05:17 AM
GCC option "-m" in Kernel Source? samstar Linux - Kernel 8 02-14-2008 03:10 AM
anging "Protocol" option to "IMPS/2" in XF86Config-4 causes problems zstingx Linux - General 2 10-27-2003 10:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration