Linux: get UPS remaining battery time

If you have a UPS connected to your Linux box maybe you need some simple way to get how much power is left in the batteries, i’ve written a simple tool to get this information (note: you need Nut to be installed, configured and running). #!/bin/bash# device to check using “nut” utilitiesUPSDEV=”usbups@localhost”# chars to be […]