title: How to read terminal output of nc utility?
body: <p>I need to run a command like</p>
  <pre><code>nc 123.123.123.123 1111
  </code></pre>
  <p>in Bash. The service I'm connecting to will send occasional messages and expect a response in the terminal. After hitting enter, it will send another prompt and expect another response.</p>
  <p>I want to automate this in Python, but I don't know how to read the output of the nc command. I need to continually re-read from the terminal after submitting the previous reply.</p>
  <p>Is there an easy way to point Python at a specific terminal and say &quot;get the contents of this&quot;?</p>