LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-01-2010, 12:16 PM   #16
tarken
Member
 
Registered: Jan 2010
Location: Portland
Distribution: Kubuntu
Posts: 82

Original Poster
Rep: Reputation: 16

Here is what I have:
Code:
#!/bin/bash
echo "Please type a file name"
read fname
while read name; do

nslookup $name | awk '/^Address:/ { if(ok) { print $2;} } /answer/ { ok=1; }' | while read address; do
ping -c 5 $address
done

whois $name | egrep '\w+([._-]\w)*@\w+([._-]\w)*\.\w{2,4}' | awk '{print $2;}' | while read email; do
 echo EMAIL: $email
done

done
When I execute this command, it just lags, nothing happens. Can anyone else get this to work with a text file with some domain names in it? Am I doing something wrong?

Tarken
 
  


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
Long file names on Linux file server jumbled when opening on 16-bit PC program. brandonhughesj General 3 03-04-2009 07:53 AM
Help opening file LinuxPimp Linux - General 7 01-26-2007 12:07 AM
Xp user opens file via Samba, but file is not locked after opening??? marisdembovskis Linux - Networking 8 07-04-2006 03:30 AM
Opening a .tar file njschroe Linux - Software 1 02-02-2005 12:56 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:07 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