[ubuntu] using screen to attach a python bot to minecraft server

view story

http://ubuntuforums.org – I am not sure where to put this thread, gaming, programming, or if it's just misuse of the program screen. I came across the program screen to attach a terminal to a the minecraft commands. Which it works. I can successfully type in commands from the terminal ie. screen and they are executed in my minecraft server. The problem i came across is when I try to automate executing the commands via a python bot. The command I found to execute the server: Code: screen -dmS world java -Xms1024M -Xmx1024M -jar minecraft_server.jar -nogui the command I found to attach a terminal to the (Hardware)