I want to do the following in Python. Connect to a remote machine open an application there and then send some commands to this application. My idea was to do it through telnetlib and subprocess. I managed to connect to the machine and start the application (with telnetlib alone), but I am not sure how to continue. Is it possible?
P.S. I am also open to ideas to do it another way, but I would prefer to do it with python.
Thanks in advance!