<div dir="auto">That is odd, I wonder if stdout/stderr get processed differently with debug on or off, and/or daemon/foregrounding involved.<div dir="auto"><br></div><div dir="auto">Is this with a packaged NUT 2.7.4 or with a recent (custom?) build from the master branch? Last month PRs were merged to separate the debugging in daemons from deciding to foreground/background their processes (and others to specify `debug_min` in config files and so not hack `-D` into init scripts or service units). Default activity should remain the same for the principle of least surprise, but fallout is possible with any change :)</div><div dir="auto"><br></div><div dir="auto">Jim</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 2, 2022, 11:47 Roger Price <<a href="mailto:roger@rogerprice.org">roger@rogerprice.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, 1 Mar 2022, Arno de Kok wrote:<br>
<br>
> The NOTIFYCMD only works when I run upsmon -D.<br>
> If I run upsmon normally then I get NOTIFY message’s:<br>
> Broadcast message from nut@raspberrypi (somewhere) (Tue Mar  1 20:33:41 2022):<br>
> UPS servers@localhost on battery<br>
> <br>
> But only with upsmon -D I also get the ouput from the user defined script ( the yellow part is from the user defined script in NOTIFYCMD )<br>
<br>
Nothing yellow for me, but I read my mail with Alpine.<br>
<br>
> Broadcast message from nut@raspberrypi (pts/0) (Tue Mar  1 20:34:43 2022):<br>
> UPS servers@localhost on battery<br>
> Python, UPS on battery<br>
> WARNING:root:Python UPS message!<br>
<br>
Is this anomaly repeatable?<br>
<br>
May we see your upsmon.conf? And maybe the Python script if it's not too big.<br>
<br>
Roger_______________________________________________<br>
Nut-upsuser mailing list<br>
<a href="mailto:Nut-upsuser@alioth-lists.debian.net" target="_blank" rel="noreferrer">Nut-upsuser@alioth-lists.debian.net</a><br>
<a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser" rel="noreferrer noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a><br>
</blockquote></div>