title: How to save Iperf result in an output file
body: <p>I am running iperf between a set of hosts that are read from a txt file, here's how I am running it:</p>
  
  <pre><code>h1,h2 = net.getNodeByName(node_id_1, node_id_2)
  
  net.iperf((h1, h2))
  </code></pre>
  
  <p>It runs well and displays the results. But, I want to save the output of iperf result in a separate txt file. Does anyone know how I can apply it on the above code?</p>