X-Git-Url: https://git.ralfj.de/saartuer.git/blobdiff_plain/9a0250c32f71db043dc1690be985d92459a3dbff..d084286e81b121106a0a165e3c151762635466e0:/tyshell?ds=sidebyside diff --git a/tyshell b/tyshell index 37873bc..2df0a22 100755 --- a/tyshell +++ b/tyshell @@ -43,9 +43,11 @@ def sendcmd(addr, cmd): s.connect(addr) s.settimeout(60.0) s.send(cmd.encode()) - data = s.recv(256) + while True: + data = s.recv(256) + if not len(data): break + print(data.decode('utf-8')) s.close() - print(data.decode('utf-8')) return run def exitcmd(c):