projects
/
saartuer.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
status report command introduced
[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
while True:
14
data = s.recv(256)
15
if not len(data): break
16
print(data)
17
s.close()