]> lifelog.hopto.org Git - LifeLog.git/commitdiff
In Ubuntu full path required to inxi.
authorWill Budicm <redacted>
Tue, 18 Aug 2020 06:05:45 +0000 (16:05 +1000)
committerWill Budicm <redacted>
Tue, 18 Aug 2020 06:05:45 +0000 (16:05 +1000)
htdocs/cgi-bin/stats.cgi

index f2f633774c0e4f6f475f1288bd3076676a0ea17f..a5dd1bdcc946210f2019f252bf59b41062a1105c 100755 (executable)
@@ -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`;