I want to run a python script inside the screen from a script. I tried this
screen -dmS gateway_monitor;screen -r gateway_monitor -p 0 -X '/usr/bin/python /root/Gateway.py'
but if I join the screen again, it is just empty and it looks like nothing was done at all. Any clues why this is or how I get what I want?
source
share