title: subprocess.call() problems using the '>'
body: <p>I'm having trouble with the call function</p>
  
  <p>I'm trying to redirect the output of a program to a text file by using the '>' </p>
  
  <p>This is what I've tried:</p>
  
  <pre><code>import subprocess
  
  subprocess.call(["python3", "test.py", "&gt;", "file.txt"])
  </code></pre>
  
  <p>but it still displaying the output on the command prompt and not in the txt file </p>