I have a server program that runs through the console. (In particular, the Bukkit MineCraft server) I would like to be able to control this program and read the result. There is no GUI, so it should not be too complicated, right?
In any case, I never controlled the console in python and was completely stuck. Any suggestions?
PS I am using Debian Linux, so this should simplify things a bit.
I got a pretty good answer, but I also need one more thing. I want to have some way to print the FULL program output to the python console (line by line in order), and I need the console commands to be redirected to the program.
source share