title: How to run windows command line from python script?
body: <p>I have a script in Python which gives a few files but I also need a log file. Usually I use this command in windows cmd:</p>
  
  <pre><code>py name.py &gt; name.log
  </code></pre>
  
  <p>This script is part of a project and I need to run it from python. I tried this:</p>
  
  <pre><code>subprocess.call(["py","name.py","&gt;","name.log"])
  </code></pre>
  
  <p>And it give me all the files that the script prepares but not the log file.</p>