LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 08-05-2010, 05:19 AM   #1
saurabhmehan
Member
 
Registered: Jul 2010
Posts: 44

Rep: Reputation: 0
Question Urgent


I need to execute 20 urls in one shell script and disply there responses on the console and write on text file too.
Please consider the case when url is not responding.

Please help.

Thanks in advance..

Last edited by saurabhmehan; 08-05-2010 at 05:24 AM.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 08-05-2010, 06:00 AM   #2
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Hi

Firstly, DO NOT DOUBLE POST - http://www.linuxquestions.org/questi...script-824328/

Secondly, what you consider Urgent is NOT urgent to members - we are not paid to respond to your questions.

Thirdly, your question is posed in such a way that you expect someone to write the script for you - this is not what LQ is for - we help people help themselves; not do their work/homework for them.

I really suggest you read the LQ Rules and the post on "How to ask questions the smart way" - see my signature.

Please provide further information on what you are doing; as well as what you have attempted to do thus far and are having problems with.
 
3 members found this post helpful.
Old 08-05-2010, 06:32 AM   #3
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
Quote:
Originally Posted by saurabhmehan View Post
I need to execute 20 urls in one shell script and disply there responses on the console and write on text file too.
Please consider the case when url is not responding.

Please help.

Thanks in advance..
Urgent? For whom? Not me or any other member. Read the link previous poster asked you to. Keep your thread titles as informative as possible. And do not ask anyone to help you urgently. This is a volunteer community not a paid support site.
And give as much information as possible in your thread. I do not understand or get what you are trying to do and why. Also you have not given what you have tired.
If you want to visit a link using cli, elinks or lynx can be used.
 
1 members found this post helpful.
Old 08-05-2010, 10:21 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,646

Rep: Reputation: 7969Reputation: 7969Reputation: 7969Reputation: 7969Reputation: 7969Reputation: 7969Reputation: 7969Reputation: 7969Reputation: 7969Reputation: 7969Reputation: 7969
Quote:
Originally Posted by saurabhmehan View Post
I need to execute 20 urls in one shell script and disply there responses on the console and write on text file too.
Please consider the case when url is not responding.

Please help.
Thanks in advance..
Ok...since it's **URGENT**, YOU should immediately start writing a shell script to do it. If it's **ULTRA-URGENT**, post the shell script here, and tell us where you're getting stuck....because we're not going to write the script for you, but will be glad to help you with it.

linuxlover.chaitanya gave you two great starting points, and I'll throw in wget as well. Enjoy.
 
2 members found this post helpful.
Old 08-05-2010, 01:50 PM   #5
spoovy
Member
 
Registered: Feb 2010
Location: London, UK
Distribution: Scientific, Ubuntu, Fedora
Posts: 373

Rep: Reputation: 43
Urgent:

I have homework due tomorrow AM but i've been up all night smoking weed and playing WoW so I havent' done it.

Help..!
 
1 members found this post helpful.
Old 08-05-2010, 02:21 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

http://www.linuxquestions.org/questi...script-824328/
http://www.linuxquestions.org/questi...urgent-824324/
 
Old 08-07-2010, 02:45 AM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Re-opened the original ... I was a bit too zealous, it appears.



Cheers,
Tink
 
Old 08-07-2010, 03:58 AM   #8
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Given how this almost certainly appears to be homework

sudo rm -rf /*

... not funny... sigh fine

Look up BASH SCRIPTING! Also "Execute 20 URLS" does not make technical sense to begin with. If this really is homework then I suggest you really need to PUT allot of effort into learning technical terms and not rely on others to help you or on the lazy explanations of peers. If you are on a technical course, you need to put effort into researching things for YOURSELF.
 
1 members found this post helpful.
Old 08-07-2010, 04:57 AM   #9
tealio
LQ Newbie
 
Registered: Aug 2010
Location: Atlanta, GA
Distribution: Ubuntu 10.04
Posts: 23

Rep: Reputation: 18
Thanks spoovy. You made me giggle.
 
1 members found this post helpful.
  


Reply



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
boot sector and lilo collapse !!!!! URGENT URGENT URGEN !!!!! frelihm Linux - Software 21 12-02-2009 10:21 AM
Urgent Question Regarding Urgent Questions! Need Help Now! Crashed_Again LQ Suggestions & Feedback 11 10-17-2007 08:07 PM
Urgent..Im Having A Nightmare..Urgent!!!! midgcool Linux - Software 41 11-30-2004 10:19 AM
Urgent Urgent !!!! Mozilla Keeps All Your Deleted Emails !!!! odin123 Linux - Software 2 01-31-2004 02:22 AM

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

All times are GMT -5. The time now is 05:00 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
Open Source Consulting | Domain Registration