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
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!