Re: What Is Better than ps (want program name etc)

From: Bill Marcum (bmarcum_at_iglou.com.urgent)
Date: 01/22/05


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


Relevant Pages

  • Re: [Full-disclosure] [ GLSA 200612-15 ] McAfee VirusScan: Insecure DT_RPATH
    ... This statement seems to contrast greatly your practice of not following ... scanner on the file then executing arbitrary code is trivial. ... instructions, please contact me off-list and I will explain it in detail. ...
    (Full-Disclosure)
  • Re: TomsFastMath speeds
    ... > a few extra instructions thrown in after every 16th multiply. ... mul and in fact your chain looks similar, ... The second add to edi is still dependent on the first being complete. ...
    (sci.crypt)
  • Re: rule this
    ... Bob Frick: ... hence the true meaning of partner's double. ... It's established practice ... and get some instructions on what information I was allowed to use. ...
    (rec.games.bridge)
  • Re: Intel details future Larrabee graphics chip
    ... "system-wide support library" is pretty broad. ... LRB instructions. ... administrator is the idiot who wants to install it and the latter ... In practice, then, on Windows there is no *practical* way of stopping ...
    (comp.arch)
  • Re: Compiling on XP pro and running on embedded
    ... In practice this is dependent of which modules you include into you XPe ... instalaltion. ...
    (microsoft.public.windowsxp.embedded)