I'm trying to do the following from a python script:
- connect to remote server
- in that remote server create a Screen
- in that screen run a few commands
- exit
So I try the following:
import os
os.system('ssh -t -t myname@server')
os.system('nice -11 screen')
However, the last command does not execute on the server. I get into the server, but have no connection to it from the python script anymore. What I want to do now is create a screen session.