title: Controlling a terminal application with Python
body: <p>I have a server program that runs through console. (Specifically, Bukkit MineCraft server) I'd like to be able to control this program and read the output. There is no GUI, so it shouldn't be too hard, right?</p>
  
  <p>Anyway, I have never controlled a console in python and am totally stuck. Any suggestions?</p>
  
  <p>P.S. I'm using Debian Linux, so that should simplify things a bit.</p>
  
  <p>I've gotten a pretty good answer, but I also need one more thing. I want to have some way to print the FULL output of the program to the python console (Line by line is fine) and I need some way for commands in the console to be forwarded to the program.</p>