[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: ldapsearch and buffered stdout

Dale.Moore@cs.cmu.edu wrote:
The client tool can read from stdin and produce output on stdout.
For example
   ldapsearch -L -x -f - 'cn=%s' uid

This will read cn values from stdin and produce search results on stdout.
But doing this interactively does not produce the immediate feedback
because stdout is often buffered.  The search results are presented
only after a sufficient amount have been buffered, or an EOF is encountered.

stdout is line buffered by default when it's attached to a terminal. I don't see any reason to change this. If it's behaving like a block-buffered handle on your system then your platform is broken.
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/