1

while trying to use subprocess library in a for loop in python to execute multiple commands simultaneously the loop doesn't go for the next iteration until the system does an output. so I decided to remove the part of outut, err = p.communicate(). Once done, they run simultaneously but can't the see the output. What I want is running multiple commands in python simultaneously and observe the output of each of these commands. I'm using this to run mutliple iperf clients and multiple iperf servers with different ip addresses from the same machine.

Andrew Mrx
  • 11
  • 1

0 Answers0