Re: Script Required to Check a range of IP's



On Thu, 2006-06-29 at 19:44 +0400, Mazhar wrote:
Hi Folks,

I have a requirement of writing down a script to check the range of IP's in
a text file and display them which all are active and not active.

I have written down the below and needs your help because it is not giving
me the correct ouptut.

Why don't you just use a shell tool like nmap for this? Something like
(assuming all the IPs are the only thing in the file):

cat ips.txt | xargs nmap -sP

--
Joshua Colson <jcolson@xxxxxxxxxxxx>

.



Relevant Pages

  • Re: Script Required to Check a range of IPs
    ... I have a requirement of writing down a script to check the range of IP's in ... a text file and display them which all are active and not active. ... print "$host is "; ...
    (perl.beginners)
  • Script Required to Check a range of IPs
    ... I have a requirement of writing down a script to check the range of IP's in ... a text file and display them which all are active and not active. ... print "$host is "; ...
    (perl.beginners)
  • Display selected lines from a .txt file
    ... I am writing a script that will allow the user to search for selected words in a .txt file. ... The result will display the entire line from the .txt file that contains the selected word. ...
    (comp.soft-sys.matlab)