parallel
[Top][All Lists]
Advanced

[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


From: Ole Tange
Subject: Re: How are stdout output and stderr output ordered with respect to each other?
Date: Thu, 22 Feb 2018 23:56:04 +0100

On Tue, Feb 13, 2018 at 12:49 AM, Peng Yu <pengyu.ut@gmail.com> 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.

Yes: -u

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.

/Ole



reply via email to

[Prev in Thread] Current Thread [Next in Thread]