Am 21.05.2014 14:28, schrieb Norbert Hoppe - FH Brandenburg:
Wenn ich das als Script ausführe, dann schein es hängen zu bleiben. Drücken von Ctrl+C führt zu folgender Meldung ^CTraceback (most recent call last): File "./dmm.py", line 34, in <module> data = s.recv(30) KeyboardInterrupt
Vermutlich liefert das Mulitmeter am Ende keine 30 Zeichen mehr. Entweder Du liest Zeichen für Zeiche, bis du zum Zeilenende kommst, oder Du setzt einen Timeout. Evlt. könnte Dir twisted.protocols.telnet die gesamte Verarbeitung erleichtern. -- Schönen Gruß Hartmut Goebel Dipl.-Informatiker (univ), CISSP, CSSLP Information Security Management, Security Governance, Secure Software Development Goebel Consult, Landshut http://www.goebel-consult.de Blog: http://www.goebel-consult.de/blog/linux-magazin-empfiehlt-adobe-reader Kolumne: http://www.cissp-gefluester.de/2011-09-kommerz-uber-recht-fdp-die-gefaellt-m... Goebel Consult ist Mitglied bei http://www.7-it.de/ ="http://www.7-it.de/">http://www.7-it.de/