diff --git a/core/user_settings/user_dashboard.php b/core/user_settings/user_dashboard.php index 50a986c4e3..fad29e6f10 100644 --- a/core/user_settings/user_dashboard.php +++ b/core/user_settings/user_dashboard.php @@ -934,7 +934,7 @@ //disk usage if (stristr(PHP_OS, 'Linux')) { - $df = shell_exec("which df"); + $df = shell_exec("/usr/bin/which df"); $tmp = shell_exec($df." /home"); $tmp = explode("\n", $tmp); $tmp = preg_replace('!\s+!', ' ', $tmp[1]); // multiple > single space @@ -1000,7 +1000,7 @@ //os uptime if (stristr(PHP_OS, 'Linux')) { unset($tmp); - $cut = shell_exec("which cut"); + $cut = shell_exec("/usr/bin/which cut"); $uptime = shell_exec($cut." -d. -f1 /proc/uptime"); $tmp['y'] = floor($uptime/60/60/24/365); $tmp['d'] = $uptime/60/60/24%365; @@ -1023,8 +1023,8 @@ //memory usage (for available memory, use "free | awk 'FNR == 3 {print $4/($3+$4)*100}'" instead) if (stristr(PHP_OS, 'Linux')) { - $free = shell_exec("which free"); - $awk = shell_exec("which awk"); + $free = shell_exec("/usr/bin/which free"); + $awk = shell_exec("/usr/bin/which awk"); $percent_memory = round(shell_exec($free." | ".$awk." 'FNR == 3 {print $3/($3+$4)*100}'"), 1); if ($percent_memory != '') { $hud[$n]['html'] .= "