title: Python: How to save the output of os.system
body: <p>In Python , If I am using "wget" to download a file using os.system("wget ), it shows on the screen like:</p>
  
  <pre><code> Resolving...
  
   Connecting to ...
  
   HTTP request sent, awaiting response...
  
   100%[====================================================================================================================================================================&gt;] 19,535,176  8.10M/s   in 2.3s 
  </code></pre>
  
  <p>etc on the screen.</p>
  
  <p>What can I do to save this output in some file rather than showing it on the screen ?</p>
  
  <p>Currently I am running the command as follows:</p>
  
  <pre><code>theurl = "&lt; file location &gt;"
  downloadCmd = "wget "+theurl
  os.system(downloadCmd)
  </code></pre>