프로그램 사용/iperf

iperf 파일로 바로바로 떨궈서 tail로 보기

구차니 2025. 2. 10. 16:03

chatGPT 에게 물어보니 stdbuf라는걸 쓰라고

-o0 (소문자 오, 숫자 영) 을 하면 버퍼링 하지 않고 바로 보낸다.

 

stdbuf - Run COMMAND, with modified buffering operations for its standard streams.

Run COMMAND, with modified buffering operations for its standard streams.
Mandatory arguments to long options are mandatory for short options too.

-i, --input=MODE
Adjust standard input stream buffering
-o, --output=MODE
Adjust standard output stream buffering
-e, --error=MODE
Adjust standard error stream buffering
--help
display this help and exit
--version
output version information and exit
If MODE is 'L' the corresponding stream will be line buffered. This option is invalid with standard input.

If MODE is '0' the corresponding stream will be unbuffered.

[링크 : https://linux.die.net/man/1/stdbuf]

[링크 : https://blog.naver.com/5bpa/130167020787]

[링크 : https://knight76.tistory.com/entry/쉘에서-pipe-사용시-빨리-실행을-하도록-지원-stdbuf]