Hi,

I need help with filter output and save to file on linux. I've tried tons of 
combinations and none of them work.

I need output in csv, filter lost_packets and save to file. I tried:
`iperf -s -u -i 1 -y C | awk -F, '{print $11}' >> lost.txt`

Output without redirection is good:
`iperf -s -u -i 1 -y C | awk -F, '{print $11}' `

This command was the only that worked, but that wasn't quite it. File was not 
overwritten but appended:

iperf -s -u -i 1 -y C | awk -F, '{print $11; fflush(); }' > lost.txt

I know that iperf3, have --forceflush option, but iperf3 have json format 
output only. CSV is better for me.

Thank you for help in advance. I tried other version of iperf too 2.0.19.

Best regards,
Adrian
_______________________________________________
Iperf-users mailing list
Iperf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iperf-users

Reply via email to