LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] process CPU utilisation.

[ILUG] process CPU utilisation.

Local user jplooney-ilug at online.ie
Thu Jan 6 11:34:44 GMT 2000


On Thu, Jan 06, 2000 at 11:30:20AM +0000, Vincent Cunniffe mentioned:
> > It's early, short question:
> > Is there any nice way of finding out the current CPU usage of a process,
> > ala top but in an uninteractive way?  Has to be portable across Linux
> > and Solaris too..
> /proc?

 There is a world of difference between Solaris /proc & Linux /proc. That
said...try:

 ps -e -o pid,comm,%cpu|grep pid

 (modern versions of Linux procps only). You get the idea. With -o, you
can specify a load of params. Check the manpage out.

Kate

-- 
Microsoft. The best reason in the world to drink beer.
http://www.redbrick.dcu.ie/~valen




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell