News for hackers. Stuff that matters.
Re:Make your STDERR red by catwell on Wednesday December 14, 2011 @07:35AM (#3351573)
Or you could just disable buffering, for instance with the unbuffer tool that comes with Expect:

    ./mytest | tee out.txt # blocks of Hello. and Hi.
    unbuffer ./mytest | tee out.txt # expected result
Re:Make your STDERR red by burgerbrain on Wednesday December 14, 2011 @12:33PM (#3352703)
Without looking at it's source, what 'unbuffer' does is likely allocate a PTY for the things under it. That's how the rest of Expect works after all ;)