stdbuf

Run a command with modified buffering operations for its standard streams. More information: https://www.gnu.org/software/coreutils/stdbuf.

stdbuf --input=512K command

stdbuf --output=L command

stdbuf --error=0 command