LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-04-2012, 12:10 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Rep: Reputation: 213Reputation: 213Reputation: 213
Internet fetcher - "what is the color of the sun?"


Hi,

A question. Using Internet with simple tools, bash, curl or wget, evtl. elinks, ... would you get a reply to simple questions?

Example of wish:
Code:
$ sh code.sh  "what is the color of the sun?"
yellow
If I remember well, I guess that Microsoft already made such a program... I gotta Google it.

Best wishes
 
Old 09-04-2012, 03:07 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
The sun is actually white.

Let us know how your google search goes, it's not a service I'm aware of personally. You might to look at the wolfram alpha api interface - http://api.wolframalpha.com/v2/query...rmat=plaintext

not a programming question, moved to Linux - Newbie.

Last edited by acid_kewpie; 09-04-2012 at 03:11 AM.
 
Old 09-04-2012, 03:49 AM   #3
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
The sun is actually white.
I thought it's red...

Last edited by Mr. Alex; 09-04-2012 at 03:51 AM.
 
Old 09-04-2012, 03:53 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Quote:
Originally Posted by Mr. Alex View Post
I thought it's red...
It is if you put filters over it to block out most of the light...
 
1 members found this post helpful.
Old 09-04-2012, 07:53 AM   #5
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,910

Rep: Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999
The sun is also the only black body in the solar system.
 
Old 09-04-2012, 08:01 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Quote:
Originally Posted by 273 View Post
The sun is also the only black body in the solar system.
You forgot Shaft.
 
Old 09-04-2012, 08:08 AM   #7
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,910

Rep: Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999
Quote:
Originally Posted by acid_kewpie View Post
You forgot Shaft.
Shut your mouth!
 
Old 09-04-2012, 08:10 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Quote:
Originally Posted by 273 View Post
Shut your mouth!
I think you just won the internets
 
Old 09-04-2012, 08:21 AM   #9
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.2
Posts: 7,652
Blog Entries: 56

Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
I think you just won the internets
If 273 owns the internets now, can the rest of us still use it?
 
Old 09-04-2012, 08:23 AM   #10
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,910

Rep: Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999
Hehe. Of course! Didn't want to veer too far OT but that just had to be said.
 
Old 09-04-2012, 11:12 PM   #11
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian + kde 4 / 5
Posts: 6,837

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
Have a look at surfraw, a command-line search engine interface.

http://surfraw.alioth.debian.org


Edit:
...and coincidentally, two minutes after I post this, I come across this new thread...

http://www.linuxquestions.org/questi...li-4175425520/

Last edited by David the H.; 09-04-2012 at 11:17 PM.
 
Old 09-05-2012, 04:48 AM   #12
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,910

Rep: Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999
I looked at surfraw when I saw that thread but all it seems to do is dump you into a browser with the search page open -- so I don't really understand the point?
 
Old 09-06-2012, 02:28 PM   #13
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Original Poster
Rep: Reputation: 213Reputation: 213Reputation: 213
what about sthg like this ?


Code:
elinks "http://www.google.at/#hl=fr&sclient=psy-ab&q=%22what+is+the+color+of+the+sun%3F%22" > output.html
cat output.html | grep "the color of the sun is"  | tail -n 4
 
Old 09-07-2012, 12:04 AM   #14
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian + kde 4 / 5
Posts: 6,837

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
My idea was that you can probably configure surfraw to "dump" to a cli browser, or even straight to stdout. Then you'd just have to find a search engine that gives you the "answers" you want directly.

I really don't know though, as I've not used it much myself.
 
Old 09-08-2012, 01:52 AM   #15
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Original Poster
Rep: Reputation: 213Reputation: 213Reputation: 213
Quote:
Originally Posted by David the H. View Post
My idea was that you can probably configure surfraw to "dump" to a cli browser, or even straight to stdout. Then you'd just have to find a search engine that gives you the "answers" you want directly.

I really don't know though, as I've not used it much myself.
I looked at surfraw but there is nothing into youtube or sthg else to present it well, i.e. what it can/could do.
 
  


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
[SOLVED] [Fedora 16] "ls --color=yes" freezes and drives up CPU usage Raveolution Linux - Software 9 04-08-2012 11:08 PM
Gnome "open as administrator" background color? NetArch Linux - Desktop 1 06-08-2011 03:17 AM
Make "ls" command show colors without "--color=always" switch SharpyWarpy Linux - General 4 07-17-2007 12:00 AM
re "cant connect to internet using suse10" and "will this work?" beejayess Linux - Newbie 12 07-11-2006 03:16 PM
reciving a wireless "a" internet connection... and sending it out as "g" pengu Linux - Wireless Networking 0 03-28-2006 11:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:20 AM.

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