Comment by wpollock
23 days ago
In C, you can use setvbuf to control buffering on stdout. There are also Linux command line utilities you can use to control buffering, unbuffer and stdbuf.
23 days ago
In C, you can use setvbuf to control buffering on stdout. There are also Linux command line utilities you can use to control buffering, unbuffer and stdbuf.
This is true, although neither of those by them selves will achieve what the author is aiming for.
If you want to learn more, I liked this blog post: https://hmarr.com/blog/how-stdbuf-works/