title: python cgi + a web interface for running batch commands?
body: <p>I'm porting a Python script that runs via command line to Python CGI so I can control the options with HTML form elements. How can I access the results of the commands?</p>
  
  <p>Script currently runs these commands:</p>
  
  <ul>
  <li>svn update</li>
  <li>rsync copy images from other local folders</li>
  <li>recompile CSS</li>
  <li><p>svn commit
  *loop these commands over a dozen times</p>
  
  <pre><code>#!/usr/bin/python
  print 'Content-Type: text/plain'
  print
  print 'test...'
  os.system("svn update /Users/daverau/titles/or_mm_creating_website_3e")
  </code></pre></li>
  </ul>
  
  <p>How can I access the console output of this command? Is there a better way to setup this kind of local job?</p>
  
  <p>Security isn't a concern, this is a local Mac tool for myself only.</p>