[Discuss] bash output buffering

Edward Ned Harvey blu at nedharvey.com
Tue Jun 12 19:01:16 EDT 2012


I have a bash script, writing to a log file, and there's a long delay before
the output appears in the file.  When it does, it appears several K at a
time.

 

I'm not having any luck figuring out how to tell bash to disable (or reduce)
the output buffer.  Anyone know?

 

In the bash man page, I see you can use ulimit -b to set the socket buffer
size.  But I don't think this is applicable to pipes, redirects, writing to
files, is it?




More information about the Discuss mailing list