<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection">
<div dir="auto">Ok, gotcha, I did that. I believe Ubuntu uses Bash for user sessions and Dash fornscripts, so followed your instructions for Dash. I put the getUPStatus bits in .bashrc and tested in Terminal and got:<br />
<br />
UPS status is [OL]:100<br />
<br />
So I went ahead and put your SHUTDOWNCMD in upsmon.conf. I think it should be working now....</div>
</div>
<div name="messageSignatureSection"><br />
<p style="margin: 0px; font-stretch: normal; line-height: normal; font-family: "Helvetica Neue"; color: rgb(34, 34, 34);">--</p>
<p style="margin: 0px; font-stretch: normal; line-height: normal; font-family: "Helvetica Neue"; color: rgb(51, 51, 51);"><span style="color: #222222"><b>Todd Benivegna</b></span> <span style="color: #222222">//</span> <a href="mailto:todd@benivegna.com">todd@benivegna.com</a></p>
</div>
<div name="messageReplySection">On Aug 4, 2020, 3:13 AM -0400, Roger Price <roger@rogerprice.org>, wrote:<br />
<blockquote type="cite" style="border-left-color: grey; border-left-width: thin; border-left-style: solid; margin: 5px 5px;padding-left: 10px;">On Mon, 3 Aug 2020, Todd Benivegna wrote:<br />
<br />
<blockquote type="cite">Thank you!  Sorry for another bonehead question…. Do I replace <myups> with<br />
the IP address of the NUT Server/Synology?  I’m assuming I would use this<br />
version for use in Dash with Ubuntu, correct?<br /></blockquote>
<br />
Yes, you replace <myups> with the address of your UPS, for example<br />
"ups@192.168.x.y". Are you using Dash or Bash? If it's Dash, the function<br />
getUPSstatus probably goes into .profile .<br />
<br />
Test on the command line before modifying SHUTDOWNCMD by typing the commands<br />
<br />
getUPSstatus <myups><br />
echo "UPS status is $UPSstatus"<br />
<br />
You should see "UPS status is [OL]:100".<br />
<br />
Roger<br />
_______________________________________________<br />
Nut-upsuser mailing list<br />
Nut-upsuser@alioth-lists.debian.net<br />
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</blockquote>
</div>
</body>
</html>