Tee and file redirections are very slow to write anything.

Eliot Moss moss@cs.umass.edu
Thu Feb 25 03:54:01 GMT 2021


On 2/24/2021 6:26 PM, Takashi Yano via Cygwin wrote:

 > "stdbuf -o L bash ./path/to/script.sh > stdout.log"
 > "stdbuf -o L bash ./path/to/script.sh | tee stdout.log"

Great stuff - thanks guys!  And thanks for the correction about line buffering.

Best - Eliot Moss


More information about the Cygwin mailing list