> On 8 Mar 2021, at 3:36 pm, Jeffrey Walton via Cocoa-dev 
> <cocoa-dev@lists.apple.com> wrote:
> 
> Tee(1) is not writing the file for him, and I can confirm the
> behavior. Here's how it is being used:
> 
>    ./cryptest-ios.sh 2>&1 | tee cryptest-ios.txt

Hey Jeff,

I recall encountering a similar problem a few months ago while doing something 
along the same lines (albeit in Swift, reading/writing from file handles).

IIRC, I eventually figured out that it had something to do with buffering, in 
that stderr wasn't being flushed to the pipe until the writer was done (in 
contrast to stdout). Unfortunately I can't immediately remember the specifics 
or what I did to solve it.

Not sure if this is of any help, but maybe it triggers some ideas...?

-b

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to