| Main index | Section 3 | Options |
Although you may load and configure this library manually, an utility, stdbuf(1), can be used to run a command with the appropriate environment variables.
| _STDBUF_I | |
| Initial buffering definition for the standard input stream | |
| _STDBUF_O | |
| Initial buffering definition for the standard output stream | |
| _STDBUF_E | |
| Initial buffering definition for the standard error stream | |
Each variable may take one of the following values:
| "0" | unbuffered |
| "L" | line buffered |
| "B" | fully buffered with the default buffer size |
| size | fully buffered with a buffer of size bytes (suffixes 'k', 'M' and 'G' are accepted) |
# vmstat 1 | LD_PRELOAD=/usr/lib/libstdbuf.so \
STDBUF_1=L awk '$2 > 1 || $3 > 1' | cat -n
See also the manpage of stdbuf(1) for a simpler way to do this.
| LIBSTDBUF (3) | April 28, 2012 |
| Main index | Section 3 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
