- Output not being output when redirecting output to a file
- When stdout points to a file, it gets buffered by libc into a 4k buffer
- Terminal output is line buffered, stderr is always unbuffered
- fflush in the program - what if we don't have the source?
- stdbuf -oL command - forces line buffering mode
- unbuffer command - part of expect, runs the command in a pty