[Cbc] Forcing output to be line buffered?

Jack Dunn jack.dunn.nz at gmail.com
Sat Oct 3 10:12:25 EDT 2015


Hi,

I'm running Cbc in a pipe to capture stdout/stderr, and I want to display
the solve process in real-time. It seems like Cbc switches to using a 4K
buffer rather than line-buffered writes when it detects it isn't running
interactively. Is there a way to force Cbc's writes to be line-buffered? I
want to avoid having to run the command through a pseudo tty if possible.

Thanks,
Jack
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20151003/96a875a2/attachment.html>


More information about the Cbc mailing list