title: Fabric - Is there any way to capture run stdout?
body: <p>I'm trying to do the following:</p>
  
  <pre><code>output = run("ls -l backups")
  for line in output.split("/n"):
      do_stuff(line)
  </code></pre>
  
  <p>Any way of having the <code>stdout</code> of <code>ls</code> sent to <code>output</code>?</p>
  
  <hr>
  
  <p>To be more specific I'm using a CLI app called <code>s3cmd</code> which does something similar to <code>ls</code>, but with remote Amazon S3 buckets.</p>
  
  <p>So a replacement for <code>ls</code> won't help unfortunately.</p>
  
  <hr>