Cactus
later in tha code...
else
{
if( -e '/sbin/apcaccess')
{
$linev = 'U';
$loadpct = 'U';
$bcharge = 'U';
$timeleft = 'U';
$outputv = 'U';
$itemp = 'U';
$battv = 'U';
@apcdata = `/sbin/apcaccess status 2> /dev/null`;
if ( $debug eq 'debug' )
{
foreach (@apcdata )
{
print 'apcdata : ' . $_;
if( -e '/sbin/apcaccess')
--> apcupsd
Nut support and apcupsd support.
Dirk