According to documentation, iperf (v2) server can be run in daemon mode and send its output to a log file like this: iperf -s -D > iperflog
I'm running that command exactly, as a regular user, from my home directory on CentOS, but the log file is always empty.
If I run it without -D
, it behaves as expected, creating a log file like this:
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[ 4] local x.x.x.x port 5001 connected with x.x.x.x port 50928
[ ID] Interval Transfer Bandwidth
[ 4] 0.0- 3.0 sec 100 MBytes 279 Mbits/sec
Is this a bug in iperf, or do I not understand output redirection, or what?
iperf -s -D > iperflog
?