Re: What Is Better than ps (want program name etc)
From: Barry Margolin (barmar_at_alum.mit.edu)
Date: 01/22/05
- Next message: Heiner Steven: "Top 10 subjects comp.unix.questions"
- Previous message: clusardi2k_at_aol.com: "What Is Better than ps (want program name etc)"
- In reply to: clusardi2k_at_aol.com: "What Is Better than ps (want program name etc)"
- Next in thread: jpd: "Re: What Is Better than ps (want program name etc)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 22 Jan 2005 11:49:29 -0500
In article <1106407243.414482.197910@f14g2000cwb.googlegroups.com>,
clusardi2k@aol.com wrote:
> Hello,
>
> I can get a lot of useful information about a pid if I use "ps", pipe
> the info to a file, and read the file, but is there a better way?
> Actually, what I want to do is use the "system" instruction within
> C/C++ to get this data. I think, the problem in using the ps system
> pair of instructions is I'm dependent on the operating system speed.
man popen
-- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***
- Next message: Heiner Steven: "Top 10 subjects comp.unix.questions"
- Previous message: clusardi2k_at_aol.com: "What Is Better than ps (want program name etc)"
- In reply to: clusardi2k_at_aol.com: "What Is Better than ps (want program name etc)"
- Next in thread: jpd: "Re: What Is Better than ps (want program name etc)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]