public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Tee and file redirections are very slow to write anything.
@ 2021-02-24 20:33 Hamish McIntyre-Bhatty
  2021-02-24 20:48 ` ASSI
  0 siblings, 1 reply; 13+ messages in thread
From: Hamish McIntyre-Bhatty @ 2021-02-24 20:33 UTC (permalink / raw)
  To: Cygwin General Mailing List


[-- Attachment #1.1.1: Type: text/plain, Size: 883 bytes --]

Hi there,

I found recently when trying to save output from a script for later 
inspection that "tee" and file redirections seem to have massive delays 
when run in Cygwin - usually nothing is written to file or stdout until 
after the command has finished - not very helpful.

I'm running a bash script with the following cmdlines:

"bash ./path/to/script.sh > stdout.log"

and:

"bash ./path/to/script.sh | tee stdout.log"

Both of them result in no writes to the file (or stdout in the second 
case) until the command is finished, and as this script takes minutes to 
run, it's not very helpful. I'm running these commands from bash in Mintty.

Is there any configuration I need to do, or have I potentially 
discovered a bug? IIRC there have been some changes in the dev version 
of Cygwin relating to file I/O so perhaps this is already fixed?

Hamish


[-- Attachment #1.1.2: OpenPGP_0x18F1759B3457223F.asc --]
[-- Type: application/pgp-keys, Size: 3175 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2021-04-18 18:46 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-24 20:33 Tee and file redirections are very slow to write anything Hamish McIntyre-Bhatty
2021-02-24 20:48 ` ASSI
2021-02-24 20:59   ` Hamish McIntyre-Bhatty
2021-02-24 21:58   ` Eliot Moss
2021-02-24 22:41     ` Duncan Roe
2021-02-24 23:26       ` Takashi Yano
2021-02-25  3:54         ` Eliot Moss
2021-02-24 23:50       ` Brian Inglis
2021-02-25  7:50         ` Brian Inglis
2021-02-25  9:21           ` Hamish McIntyre-Bhatty
2021-02-25  9:51             ` Henry S. Thompson
2021-02-25 10:27               ` Takashi Yano
2021-04-18 18:45                 ` Hamish McIntyre-Bhatty

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).