Re: What Is Better than ps (want program name etc)
From: Bill Marcum (bmarcum_at_iglou.com.urgent)
Date: 01/22/05
- Next message: Karen Wieprecht: "Re: Logger messages getting stuck in a buffer somewhere?"
- Previous message: jpd: "Re: 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)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 22 Jan 2005 12:52:45 -0500
On 22 Jan 2005 07:20:43 -0800, clusardi2k@aol.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.
> Thank you,
> Christopher Lusardi
>
You can explore the /proc filesystem, if your *ix has that.
-- When you say that you agree to a thing in principle, you mean that you have not the slightest intention of carrying it out in practice. -- Otto Von Bismarck
- Next message: Karen Wieprecht: "Re: Logger messages getting stuck in a buffer somewhere?"
- Previous message: jpd: "Re: 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)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|