<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello,</p>
<p>not sure if it is a scripting problem or an owner/group problem
but when I try to send an email following en event using
upssched-cmd, the script exits on the line where I send the email
with this message in syslog : <br>
</p>
<p><font face="Courier New, Courier, monospace">Mar 19 20:49:51
chaudron-nautique upssched[1377]: exec_cmd(/path/upssched-cmd
onbatt1) returned 78</font></p>
<p>The log messages prior to the email (<font face="Courier New,
Courier, monospace">logger -t upssched-cmd message</font>) can
be found in syslog thus I'm sure that upssched-cmd is called when
the event occurs and if I runĀ <font face="Courier New, Courier,
monospace"> </font><font face="Courier New, Courier, monospace">~#./upssched-cmd
onbatt1</font><font face="Courier New, Courier, monospace"> </font>as
root, the mail is sent properly.</p>
<p>I tried a few things regarding privileges on nut/mail/msmtp but
could not make it work. <br>
</p>
<p>If someone knows what I need to do, I'd be happy !</p>
<p>Cdly,</p>
<p>Mathieu</p>
<p><br>
</p>
<p>OS : debian buster (10.3)</p>
<p>Package to send the email : msmtp 1.8.3-1 amd64<br>
</p>
<p>Nut : nut/stable 2.7.4-8<br>
</p>
<p> Installed under root, via apt install nut<br>
</p>
<p>Ups : APC BE700G-FR (ES serie) <br>
</p>
<p><br>
</p>
<p><br>
</p>
<div class="moz-signature">-- <br>
<img src="cid:part1.9BACCDE7.5945AC59@chaudron-nautique.fr"
border="0"></div>
</body>
</html>