From 54fd262cfc0083de82a1367360a482f0a352138f Mon Sep 17 00:00:00 2001 From: Constantin Berhard Date: Mon, 30 Sep 2013 16:38:52 +0200 Subject: [PATCH 1/1] developer shell added which doesn't do any magic new file: tryshell --- tryshell | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 tryshell diff --git a/tryshell b/tryshell new file mode 100755 index 0000000..3d4e3ed --- /dev/null +++ b/tryshell @@ -0,0 +1,15 @@ +#!/usr/bin/python3 + +import readline +import socket + +tuerSock = "/run/tuer.sock" + +while True: + command = input("# ") # EOFError used to exit + s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) + s.connect(tuerSock) + s.send(command.encode()) + data = s.recv(64) + s.close() + print(str(data)) -- 2.30.2