Top's output

Top's output

Post by Sam » Sat, 28 Jun 2003 03:03:10



Hi all,
I'm wondering how to make the app's output just like top's. C gnu/linux. Any
clues?

TIA

-s

 
 
 

Top's output

Post by Artie Gol » Sat, 28 Jun 2003 03:25:45



> Hi all,
> I'm wondering how to make the app's output just like top's. C gnu/linux. Any
> clues?

Not sure what you mean.
If you're talking about the display, it uses (n)curses (which you could
have discovered by looking at the output of `ldd').
If you're talking about the information, it gets it from the /proc
filesystem (this varies for different unices).

Why not look at the source and see?

HTH,
--ag
--
Artie Gold -- Austin, Texas

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---

 
 
 

Top's output

Post by Wojtek Walcza » Sun, 29 Jun 2003 22:37:21


Dnia Thu, 26 Jun 2003 14:03:10 -0400, Sam napisa?(a):
Quote:> I'm wondering how to make the app's output just like top's. C gnu/linux. Any
> clues?

<http://procfs.sf.net/>
Take a look at functions openproc()/ps_readproc()/closeproc() from
proc/readproc.c.

--
[ Wojtek Walczak - gminick (at) underground.org.pl ]
[        <http://gminick.linuxsecurity.pl/>        ]
[ "...rozmaite zwroty, matowe od patyny dawnosci." ]

 
 
 

Top's output

Post by Donn Mille » Thu, 03 Jul 2003 22:25:46



> <http://procfs.sf.net/>
> Take a look at functions openproc()/ps_readproc()/closeproc() from
> proc/readproc.c.

Not Found
The requested URL / was not found on this server.

Maybe you meant http://procps.sourceforge.net/?

-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----