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