projects
/
saartuer.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch 'master' of ralfj.de:saartuer
[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))