Python: How to suppress the output of os.system
<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>

<p>theurl = "&lt; file location >"</p>

<p>downloadCmd = "wget "+theurl</p>

<p>os.system(downloadCmd)</p>
