<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Jack,<br>
<br>
Instead of using standalone Cbc use a driver like
Cbc/examples/driver3.cpp (which gives same functionality) and pass
in a message handler. Look at Clp/examples/driver2.cpp to see
what sort of thing has to be done. Then you can flush the buffer
in ::print.<br>
<br>
John Forrest<br>
<br>
On 03/10/15 15:12, Jack Dunn wrote:<br>
</div>
<blockquote
cite="mid:CABKkHkRLtV=+ddRGQJPLgphrU8AdMw=GLd2K+QfRM4obEc77pQ@mail.gmail.com"
type="cite">
<meta http-equiv="Context-Type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi,
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Jack</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Cbc mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a>
<a class="moz-txt-link-freetext" href="http://list.coin-or.org/mailman/listinfo/cbc">http://list.coin-or.org/mailman/listinfo/cbc</a>
</pre>
</blockquote>
<br>
</body>
</html>