Sending output of os.system to web app
<p>I'm developing a webbased controller for robots. When I run a command like <code>os.system('cd /home/tim/tmprcc/; ino build; ino upload')</code>, I need to be able to send the output to the web app. How do I capture the output during execution in Python? The user needs to be able to see the output live as it is showing on my terminal.</p>

<p>Your answer should have Python code that calls <code>do_something_function(new_output)</code> every time a line of output appears, where new_output is the entire output generated so far.</p>
