It kinda looks like he is looking to use return values to do his scripting.... If so, try netcat. nc -z -w3 192.168.1.1 80 That will return 0 on open port. 1 on close port. 1 on filtered port. Waits 3 seconds for a response. Wrap in a loop as needed... Mike -----Original Message----- From: centos-bounces@xxxxxxxxxx [mailto:centos-bounces@xxxxxxxxxx] On Behalf Of Matt Shields Sent: December 7, 2006 1:55 PM To: CentOS mailing list Subject: Re: Scripting port scans Use nmap. Here I'm scanning my home network for any port 80 that's open nmap -p 80 192.168.1.0/24 Matt Shields Cyberbite Network - www.cyberbite.com On 12/7/06, Ugo Bellavance <ugob@xxxxxxxxxxxxxx> wrote: > Hi, > > I need to test one specific port on a serie of Ip addresses that I > own, I thought about using nmap or telnet, but both return the same > value, no matter if the port is open or filtered. > > Anyone has an idea, before I start scripting to analyse the output of > the command? > > Regards, > > Ugo > > _______________________________________________ > CentOS mailing list > CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos > _______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos _______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos