I have a script which calls two commands:
long_running_command | print_progress
The long_running_command
prints progress but I'm unhappy with it. I'm using print_progress
to make it nicer (namely, I print the progress in a single line).
The problem: Connection a pipe to stdout also activates a 4K buffer, so the nice print program gets nothing ... nothing ... nothing ... a whole lot ... :)
How can I disable the 4K
buffer for the long_running_command
(no, I do not have the source)?