developer shell added which doesn't do any magic
[saartuer.git] / tryshell
diff --git a/tryshell b/tryshell
new file mode 100755 (executable)
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))