or more simple
cat /proc/loadavg |awk '{print $1}'
On 20.04.2015 09:40, Shabbir abbasi wrote:
> $cpuload = `uptime |awk -F 'load average:' ' {print \$2}'| awk -F '[
> ]' ' {print \$2}' | awk '{gsub(",", "");print \$1}' `;
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org