Make shell script get information from the internet


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Make shell script get information from the internet
# 1  
Old 01-28-2012
Bug Make shell script get information from the internet

Hello,
I am attempting to learn shell for approx. two weeks. So, sorry if I am writing wrong things. Can a shell script get some information for itself from a site? I can't post the site right know, I don't have privileges. But it can be any site that shows the currency between whatever. Actually I don't need it Smilie. I just want to see if there is a script that gets the information from an on-line site.

Thanks in advance,
Alp.

edit:Oh i forgot, it is a bash script.
# 2  
Old 01-28-2012
check Wget GNU Wget or cURL cURL and libcurl.
This User Gave Thanks to frank_rizzo For This Post:
# 3  
Old 01-28-2012
Hi.

See also man lynx for lynx -dump to get text from a web page.

For example, enter this at the command line:
Code:
lynx -dump -nolist www.google.com

to get the text from the first page at Google ... cheers, drl

Last edited by drl; 01-28-2012 at 06:05 PM.. Reason: ( minor typo )
This User Gave Thanks to drl For This Post:
# 4  
Old 01-28-2012
Thanks, lynx will be useful.
Also how do I specify the script to take a particular line of it?

Last edited by alpa8le; 01-28-2012 at 06:05 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help with shell script to extract certain information

Hi, I have a file which I need to programmatically split into two files. All the information in the file before pattern "STOP HERE" is to be stripped and output into one file while everything after "STOP HERE" is to be output into a separate file. I would appreciate help on how to do... (8 Replies)
Discussion started by: PTL
8 Replies

2. Shell Programming and Scripting

shell script to sort information in one file

Hi to all, anyway to create shell script to sort informations from one file and create new file with the sorted values? from file 30days.out -bash-3.00# more 30days.out user/str4@kl.com/INBOX user/tg1@johor.com/INBOX user/tg2@kedah.com/INBOX user/tg3@titangroup.com/INBOX... (3 Replies)
Discussion started by: Mr_47
3 Replies

3. Shell Programming and Scripting

Shell script for user login information.

Hi Gurus, I need help in writing a script which should say which user has used or logged in in the server from past one month using FTP or TELNET and the output should be of the form Username Service NumberofTimes Date. Thanks in Advance. ---------- Post updated at 04:01 PM... (1 Reply)
Discussion started by: rama krishna
1 Replies

4. Shell Programming and Scripting

Help need to make a shell script run for ffmpeg vhook watermaking in shell

i have a small problem getting a batxh shell script to run in shell this is the code the problem seems to be centered around the ffmpeg command, something maybe to do with the ' ' wrapping around the vhook part command this is a strange problem , if i take the ffmpeg command and... (1 Reply)
Discussion started by: wingchun22
1 Replies
Login or Register to Ask a Question