From: Ger Gorman (gormo at domain epona.physics.ucg.ie)
Date: Mon 24 May 1999 - 19:55:48 IST
ok, I'm trying to get the %CPU idle from a script (as in obtain its value
....$idle_cpu). Now my first thought was to assign the output of
'top -q|head -3|tail -1' to a string and strip out the value...but it is
hardly a pleasing way to do it....top is slow to return even with the -q
and you also have to reset your shell when the script returns as it does
some funny things to it.....so does anyone know of a nicer way of doing
this.....a nice system call maybe???
BTW...still cant get my camra working....some sort of syncroniseing problem
is just giving me loads of horizontal lines...ahhh!
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:13 GMT