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 <[EMAIL PROTECTED]>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to