X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Jared Subject: Redirecting standard output problem Date: Tue, 10 Jun 2008 19:16:26 +0000 (UTC) Lines: 21 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com I've run into something using Cygwin that was rather unexpected. When redirecting stdout to a file with a program such as vmstat, the output is buffered in 64k chunks. No output appears until 64k of output has been produced. This was verified with a Perl script to see at what point output appears in a file. So a command such as this: vmstat 20 > vmstat.log is going to take a very long time to put anything in the output file. Unlike unix or linux, CTL-C does not flush the buffer to disk, the output just disappears. Is there some way to change this behavior? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/