This directory contains some demonstrations of the thread module.
-They are mostly "proof of concept" type applications:
+This module is only (optionally) available for the SGI, for now.
+These are mostly "proof of concept" type applications:
+
+find.py Parallelized "find(1)".
telnet.py Version of ../sockets/telnet.py using threads.
wpi.py Version of ../scripts/pi.py using threads and stdwin.
WILL = chr(251)
def main():
+ if len(sys.argv) != 2:
+ sys.stderr.write('usage: telnet hostname\n')
+ sys.exit(2)
host = sys.argv[1]
try:
hostaddr = gethostbyname(host)
for c in data:
if opt:
print ord(c)
- print '(replying: ' + `opt+c` + ')'
+## print '(replying: ' + `opt+c` + ')'
s.send(opt + c)
opt = ''
elif iac: