From owner-freebsd-hackers Tue Jun 20 14:15:57 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from hotmail.com (f97.law9.hotmail.com [64.4.9.97]) by hub.freebsd.org (Postfix) with SMTP id B0A2937B5D7 for ; Tue, 20 Jun 2000 14:15:54 -0700 (PDT) (envelope-from gerald_stoller@hotmail.com) Received: (qmail 31842 invoked by uid 0); 20 Jun 2000 21:15:53 -0000 Message-ID: <20000620211553.31841.qmail@hotmail.com> Received: from 12.20.190.1 by www.hotmail.com with HTTP; Tue, 20 Jun 2000 14:15:53 PDT X-Originating-IP: [12.20.190.1] From: "gerald stoller" To: freebsd-hackers@FreeBSD.ORG Subject: Korn shell STDOUT Date: Tue, 20 Jun 2000 17:15:53 EDT Mime-Version: 1.0 Content-Type: text/plain; format=flowed Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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? Please respond directly to me as I have several hundred unread letters in my Bulk Mail folder. ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message