title: Python inline linux commands
body: <p>I am testing sorting algorithms and therefore I would like to compine in my Python code, the linux command "time", because it takes some interesting arguments and for example the call of quicksort.</p>
  
  <pre><code>from subprocess import Popen
  import quicksort
  import rand
  
  time=Popen("time quicksort.main(rand.main())")
  </code></pre>
  
  <p>This is tottaly wrong, but it is the closest I managed to get. I haven't grasped the idea of subprocess class, is it possible to combine method calls with linux commands, or only add commands in python like "grep..." and send the output to a variable??</p>