#!/bin/bash export UPS_LOG="$(/sbin/apcaccess status 172.27.0.31:$1)" echo $UPS_LOG