[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How are stdout output and stderr output ordered with respect to each
Re: How are stdout output and stderr output ordered with respect to each other?
Thu, 22 Feb 2018 23:56:04 +0100
On Tue, Feb 13, 2018 at 12:49 AM, Peng Yu <address@hidden> wrote:
> The following example shows that the order of the stdout/err output is
> not maintained. It seems that stdout always goes earlier than stderr.
> Is it so?
Yes. But more importantly: stdout is printed to stdout, and stderr is
printed to stderr.
> Is there a way to make the order to be the same as if gnu parallel is
> not called.
The problem is if you want buffering of output, you cannot put
timestamps on each byte in an efficient manner. Thus you cannot tell
which byte was written first.