123 lines
3.7 KiB
HTML
123 lines
3.7 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of STDBUF</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>STDBUF</H1>
|
|
Section: User Commands (1)<BR>Updated: September 2019<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
stdbuf -
|
|
Run COMMAND, with modified buffering operations for its standard streams.
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>stdbuf</B>
|
|
|
|
<I>,OPTION/</I>... <I>,COMMAND/</I>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
|
|
<P>
|
|
|
|
Run COMMAND, with modified buffering operations for its standard streams.
|
|
<P>
|
|
|
|
Mandatory arguments to long options are mandatory for short options too.
|
|
<DL COMPACT>
|
|
<DT id="1"><B>-i</B>, <B>--input</B>=<I>,MODE/</I><DD>
|
|
adjust standard input stream buffering
|
|
<DT id="2"><B>-o</B>, <B>--output</B>=<I>,MODE/</I><DD>
|
|
adjust standard output stream buffering
|
|
<DT id="3"><B>-e</B>, <B>--error</B>=<I>,MODE/</I><DD>
|
|
adjust standard error stream buffering
|
|
<DT id="4"><B>--help</B><DD>
|
|
display this help and exit
|
|
<DT id="5"><B>--version</B><DD>
|
|
output version information and exit
|
|
</DL>
|
|
<P>
|
|
|
|
If MODE is 'L' the corresponding stream will be line buffered.
|
|
This option is invalid with standard input.
|
|
<P>
|
|
|
|
If MODE is '0' the corresponding stream will be unbuffered.
|
|
<P>
|
|
|
|
Otherwise MODE is a number which may be followed by one of the following:
|
|
KB 1000, K 1024, MB 1000*1000, M 1024*1024, and so on for G, T, P, E, Z, Y.
|
|
In this case the corresponding stream will be fully buffered with the buffer
|
|
size set to MODE bytes.
|
|
<P>
|
|
|
|
NOTE: If COMMAND adjusts the buffering of its standard streams ('tee' does
|
|
for example) then that will override corresponding changes by 'stdbuf'.
|
|
Also some filters (like 'dd' and 'cat' etc.) don't use streams for I/O,
|
|
and are thus unaffected by 'stdbuf' settings.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>EXAMPLES</H2>
|
|
|
|
<B>tail -f access.log | stdbuf -oL cut -d ' ' -f1 | uniq</B>
|
|
|
|
<BR>
|
|
|
|
This will immediately display unique entries from access.log
|
|
<A NAME="lbAF"> </A>
|
|
<H2>BUGS</H2>
|
|
|
|
On GLIBC platforms, specifying a buffer size, i.e., using fully buffered mode
|
|
will result in undefined operation.
|
|
<A NAME="lbAG"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
Written by Padraig Brady.
|
|
<A NAME="lbAH"> </A>
|
|
<H2>REPORTING BUGS</H2>
|
|
|
|
GNU coreutils online help: <<A HREF="https://www.gnu.org/software/coreutils/">https://www.gnu.org/software/coreutils/</A>>
|
|
<BR>
|
|
|
|
Report stdbuf translation bugs to <<A HREF="https://translationproject.org/team/">https://translationproject.org/team/</A>>
|
|
<A NAME="lbAI"> </A>
|
|
<H2>COPYRIGHT</H2>
|
|
|
|
Copyright © 2018 Free Software Foundation, Inc.
|
|
License GPLv3+: GNU GPL version 3 or later <<A HREF="https://gnu.org/licenses/gpl.html">https://gnu.org/licenses/gpl.html</A>>.
|
|
<BR>
|
|
|
|
This is free software: you are free to change and redistribute it.
|
|
There is NO WARRANTY, to the extent permitted by law.
|
|
<A NAME="lbAJ"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
Full documentation at: <<A HREF="https://www.gnu.org/software/coreutils/stdbuf">https://www.gnu.org/software/coreutils/stdbuf</A>>
|
|
<BR>
|
|
|
|
or available locally via: info '(coreutils) stdbuf invocation'
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="6"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="7"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="8"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="9"><A HREF="#lbAE">EXAMPLES</A><DD>
|
|
<DT id="10"><A HREF="#lbAF">BUGS</A><DD>
|
|
<DT id="11"><A HREF="#lbAG">AUTHOR</A><DD>
|
|
<DT id="12"><A HREF="#lbAH">REPORTING BUGS</A><DD>
|
|
<DT id="13"><A HREF="#lbAI">COPYRIGHT</A><DD>
|
|
<DT id="14"><A HREF="#lbAJ">SEE ALSO</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:27 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|