[systemd-devel] Why are the priorities of stdout and stderr the same

Cecil Westerhof cldwesterhof at gmail.com
Tue Aug 29 22:10:22 UTC 2023


Op di 29 aug 2023 om 23:05 schreef Nils Kattenbeck <nilskemail at gmail.com>:

> No, you can use systemd-cat to then invoke your script which applies
> to every output of it.
>

OK, I will dive into it.



> Also, you can just use reply-all in gmail (or even set it as the
> default in the settings) to have the correct behaviour of sending
> mails also the the mailing list.
>

I will do that then. Only problem is that the original poster will get the
message two times.
Except when I remove the To. But forgetting to remove that is not as bad as
not sending it to the mailing list.



> On Tue, Aug 29, 2023 at 10:25 PM Cecil Westerhof <cldwesterhof at gmail.com>
> wrote:
> >
> > Aargh, forgot again that gmail works differently when replying. :'-{
> >
> > Op di 29 aug 2023 om 21:07 schreef Cecil Westerhof <
> cldwesterhof at gmail.com>:
> >>
> >> Op di 29 aug 2023 om 19:47 schreef Nils Kattenbeck <
> nilskemail at gmail.com>:
> >>>
> >>> Hi, At least for simple cases you can use systemd-cat which allows
> >>> setting different priorities for stdout and stderr. It even explicitly
> >>> states that doing so will lose the ordering guarantees which are only
> >>> possible when attaching stdout and stderr to the same fd (as Lennart
> >>> said).
> >>
> >>
> >> If I understand it correctly, that is on a statement basis, not for the
> complete script.
>

-- 
Cecil Westerhof
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20230830/0f6f32e9/attachment.htm>


More information about the systemd-devel mailing list