From: yosuke AT ccwf DOT cc DOT utexas DOT edu () Newsgroups: comp.os.msdos.djgpp Subject: Re: redir.exe question Date: 14 Jul 2000 03:27:43 GMT Organization: The University of Texas at Austin; Austin, Texas Lines: 22 Message-ID: <8km1bf$kko$1@geraldo.cc.utexas.edu> References: <8kkv0e$4co$1 AT geraldo DOT cc DOT utexas DOT edu> <200007131938 DOT PAA26113 AT envy DOT delorie DOT com> NNTP-Posting-Host: piglet.cc.utexas.edu X-Trace: geraldo.cc.utexas.edu 963545263 21144 128.83.42.61 (14 Jul 2000 03:27:43 GMT) X-Complaints-To: abuse AT cc DOT utexas DOT edu NNTP-Posting-Date: 14 Jul 2000 03:27:43 GMT X-Newsreader: TIN [version 1.2 PL2] To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hello ... DJ Delorie! (are you the author of DJGPP?) Thank you for your suggestion, and I will read setbuf(3c). Actually the out/err comes from dos-batch file which calls compilers/linkers. So I guess I will write a driver c program which uses setbuf, then system calls the batch file... Am I on the right track? yosuke kimura DJ Delorie (dj AT delorie DOT com) wrote: : stderr is unbuffered by default, but stdout is line buffered if the : output is the screen or *block* buffered if the output is a file : (i.e. redirected). The only way to avoid this is to use one of the : buffer-setting functions (setbuf, setbuffer, setvbuf) to change the : output buffering of stderr and/or stdout. -- yosuke kimura Center for Energy and Environmental Resources The Univ. of Texas at Austin, USA