in reply to Testing for port connectivity

Just in case you don't know, nmap can do exactly what you are doing. `nmap -p 22,13724,etc <hosts>'

Replies are listed 'Best First'.
Re^2: Testing for port connectivity
by RobPayne (Chaplain) on Sep 05, 2006 at 22:29 UTC
    As brd said, nmap does that and much more, if that is a tool which is available to you. If you aren't familiar with nmap, it will write output files in several different formats, including:
  • normal (-oN)
  • XML (-oX)
  • "s|<rIpt kIddi3" (-oS)
  • grepable format (-oG)