Help for this page
@outrecs = `ps -efo pid,pcpu,fname`; @matches = grep /ns-httpd/, @outrecs; ... ($process, $pcpu, $pname) = split(" "); $sttotal = $sttotal + $pcpu; }
@matches = `ps -efo pid,pcpu,fname|grep httpd`;