This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Redirecting standard output problem


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]