On Wednesday 28 June 2006 13:25, Tim Churches wrote:
> > I'd have to think about how to do that under Windos unfortunately. It
> > could be a bit tricky.
>
> A Python script could do it, I think. I'll see what can be whipped up...

easy peasy.

import telnetlib

host = 127.0.0.1
ports = [1000,2000,3000]

for port in ports:
        tn = telnetlib.Telnet(host, port)
        try:
                tn.open()
                tn.close()
        except:
                print "can't connect to host %s o port %d" % (host, port)
        

Horst
_______________________________________________
Gpcg_talk mailing list
[email protected]
http://ozdocit.org/cgi-bin/mailman/listinfo/gpcg_talk

Reply via email to