update the SpaceAPI at least once every 10 minutes (so the server could check for...
[saartuer.git] / tryshell
1 #!/usr/bin/python3
2
3 import readline
4 import socket
5
6 tuerSock = "/run/tuer.sock"
7
8 while True:
9         command = input("# ") # EOFError used to exit
10         s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
11         s.connect(tuerSock)
12         s.send(command.encode())
13         data = s.recv(64)
14         s.close()
15         print(str(data))