www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | Jared <jkstill AT gmail DOT com> |
Subject: | Redirecting standard output problem |
Date: | Tue, 10 Jun 2008 19:16:26 +0000 (UTC) |
Lines: | 21 |
Message-ID: | <loom.20080610T191205-689@post.gmane.org> |
Mime-Version: | 1.0 |
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: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |