Lines Matching refs:getCmdOutput
545 sub getCmdOutput { subroutine
729 my $model = getCmdOutput("sysctl -n machdep.cpu.brand_string");
730 my $flags = getCmdOutput("sysctl -n machdep.cpu.features | tr [A-Z] [a-z]");
731 my $ncpu = getCmdOutput("sysctl -n hw.ncpu");
798 $info->{'name'} = getCmdOutput("hostname");
799 $info->{'os'} = getCmdOutput("uname -o") || getCmdOutput("uname -s");
800 $info->{'osRel'} = getCmdOutput("uname -r");
801 $info->{'osVer'} = getCmdOutput("uname -v");
803 ? getCmdOutput("uname -m")
804 : getCmdOutput("uname -p");
805 $info->{'platform'} = getCmdOutput("uname -i") || "unknown";
810 $info->{'system'} = getCmdOutput("cat /etc/SuSE-release");
812 $info->{'system'} = getCmdOutput("cat /etc/release");
816 my $lang = getCmdOutput("printenv LANG");
818 ? getCmdOutput("locale -k LC_CTYPE | grep charmap") || ""
819 : getCmdOutput("locale charmap") || "";
822 ? getCmdOutput("locale -k LC_COLLATE | grep collate-codeset") || ""
823 : getCmdOutput("locale | grep LC_COLLATE") || "";
842 $info->{'graphics'} = getCmdOutput("3dinfo | cut -f1 -d\'(\'");
845 $info->{'runlevel'} = getCmdOutput("who -r | awk '{print \$3}'");
846 $info->{'load'} = getCmdOutput("uptime");
847 $info->{'numUsers'} = getCmdOutput("who | wc -l");