Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.