[Coin-discuss] Trouble Capturing Sbb output with Linux redirect

Ted Ralphs tkr2 at lehigh.edu
Fri Feb 20 10:10:47 EST 2004


Steve,

I've run into this problem. There is a line output buffer that won't 
print anything until there is a pre-specified number of lines in the 
buffer. If you set the line buffer to 0, it will print out everything in 
real time. The command to so is "setvbuf", called as follows:

    setvbuf(stdout, (char *)NULL, _IOLBF, 0);

Hope this helps!

Ted
-- 
Dr. Ted Ralphs
Assistant Professor
Industrial and Systems Engineering
Lehigh University
(610)758-4784
tkralphs at lehigh.edu
www.lehigh.edu/~tkr2




More information about the Coin-discuss mailing list