I want to run a python script on my server (that python script has GUI). But I want to start it from ssh. Something like this:
ssh me@server -i my_key "nohup python script.py"
… > let the script run forever
BUT it complains “unable to access video driver” since it is trying to use my ssh terminal as output.
Can I somehow make my commands output run on server machine and not to my terminal… Basically something like “wake-on-lan functionality” -> tell the server you want something and he will do everything using its own system (not sending any output back)
What about
You can use redirection to some remote logfile instead of /dev/null of course.
? 🙂
EDIT: GUI applications on X usually use $DISPLAY variable to know where they should be displayed. Moreover, X11 display servers use authorization to permit or disallow applications connecting to its display. Commands
may be helpful for you.