From: Will Budicm Date: Tue, 18 Aug 2020 06:05:45 +0000 (+1000) Subject: In Ubuntu full path required to inxi. X-Git-Url: https://lifelog.hopto.org/gitweb/?a=commitdiff_plain;h=9dfcbfb007933643f1a91989110cdfc02951af97;p=LifeLog.git In Ubuntu full path required to inxi. --- diff --git a/htdocs/cgi-bin/stats.cgi b/htdocs/cgi-bin/stats.cgi index f2f6337..a5dd1bd 100755 --- a/htdocs/cgi-bin/stats.cgi +++ b/htdocs/cgi-bin/stats.cgi @@ -115,9 +115,10 @@ $income = big_money(sprintf("%.2f",$income)); #utility inxi could be a perl written version on newer systems. #So I use the inter processing module here for inxi. -- @wbudic my $HS = ""; -my @cmd = ("inxi", "-b", "-c0"); +my @cmd = ("/usr/bin/inxi", "-b", "-c0"); +#Gatter into $HS run \@cmd, '>&', \$HS; #instead of -> system("inxi",'-b', '-c0'); - $HS .= `uptime -p`; +$HS .= `uptime -p`; my $hardware_status = $HS;#`inxi -b -c0; uptime -p`;