Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jun 2000 18:55:36 -0500 (CDT)
From:      "Kenneth P. Stox" <stox@imagescape.com>
To:        gerald stoller <gerald_stoller@hotmail.com>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   RE: Korn shell  STDOUT
Message-ID:  <XFMail.000620185536.stox@imagescape.com>
In-Reply-To: <20000620211553.31841.qmail@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 20-Jun-00 gerald stoller wrote:
>       I am trying to learn how the (Korn) shell is organized, so I put some  
> printf  statements in many places.  They give a lot of output on  STDOUT , 
> so in order to be able to read it, I pipe it to a  tee  command which stores 
> the output.  I have found that the output pauses when the file has  16384  
> (or thereabouts) bytes in it, sometimes it goes to  32768  (or thereabouts) 
> bytes in it, and a couple of times it has even gone up to  65536  (or 
> thereabouts) bytes.  This behavior makes me think of buffered output, but 
> (with some checking via long files) neither  pipe  nor  tee  have buffered 
> output, and so I have been told by a Bell Labber.  Anybody know how I can 
> easily change the
> STDOUT to be unbuffered?

You might want to write to stderr which, if memory serves correct, is
un-buffered.

----------------------------------
E-Mail: Kenneth P. Stox <stox@imagescape.com>
Date: 20-Jun-00
Time: 18:54:17
----------------------------------


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.000620185536.stox>