Saving xterm output to file

54 Views Asked by At

Now I am doing mininet & iperf & gnuplot homework After typing

mininet > xterm h1 h2

I got two xterm windows to run my server & client scripts

I want to save client-receivers TCP result into a file, and I have tried like below

iperf -c 10.0.0.2 -p 5566 -t 15 > tcp_output
iperf -c 10.0.0.2 -p 5566 -t 15 | tee tcp_output

But both of them does not work Can anyone help?

1

There are 1 best solutions below

0
nightfury On

Try the following command:

iperf -c 10.0.0.2 -p 5566 -t 15 --logfile iperf.log