Help?? Struct packing of Date time not has stopped working??!?!
Klaus Baldermann
kbaldermann at entire-systems.com
Wed Dec 15 09:12:49 EST 1999
Following up my own posting :-)
I just tried the following script:
# check time server
import telnetlib, sys, time
connection = telnetlib.Telnet()
line = ''
host = sys.argv[1]
count = 0
check = {}
while count < 1000:
connection.open(host, 37)
line = connection.read_all()
connection.close()
count = count + 1
try:
check[len(line)] = check[len(line)] + 1
except:
check[len(line)] = 1
time.sleep(0.7)
c1 = check.keys()
c1.sort()
for i in c1:
print i, check[i]
and the result was:
3 11
4 989
I assume our (intranet) time server doesn't use Python, so it is probably
not your server script at fault.
And to find out more, one would have to capture the server output to see
which values are
pathological.
yours
Klaus
More information about the Python-list
mailing list