I have the python client application with the following code and it works fine:
import socket
sock = socket.socket()
sock.connect(('127.0.0.1', 55555))
sock.send(b'mkdir test') # windows command
data = sock.recv(1024)
sock.close()
print(data)
I need to input commands with input operator, e.g.:
comm = input('Input the system command: ') # mkdir test
sock.send(b'f{comm}')
But it doesn't work. I tried to change b to byte, wrote b'\f and like that. Any ideas?