]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
*** empty log message ***
authorGuido van Rossum <guido@python.org>
Fri, 17 Dec 1993 14:45:06 +0000 (14:45 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 17 Dec 1993 14:45:06 +0000 (14:45 +0000)
Demo/threads/README
Demo/threads/telnet.py

index 9c6d30ac26c5a9b8ab5496ddf1aa9817f8348eec..01566fc98d79e2e8f08786612414f99f2dd0c58f 100644 (file)
@@ -1,5 +1,8 @@
 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.
index e5101eb4978339a9d28df63219e48d7f716adaa8..5d4ae76cad71e76735abf17a0087ab0ae793cb00 100644 (file)
@@ -28,6 +28,9 @@ WONT = chr(252)
 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)
@@ -74,7 +77,7 @@ def parent(s):
                for c in data:
                        if opt:
                                print ord(c)
-                               print '(replying: ' + `opt+c` + ')'
+##                             print '(replying: ' + `opt+c` + ')'
                                s.send(opt + c)
                                opt = ''
                        elif iac: