Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: ken@halcyon.com (Ken Pizzini)
Subject: Re: enumerating processes: DEC OSF/1
Date: 1999/02/20	[thread overview]
Message-ID: <slrn7cs2vt.8so.ken@pulsar.halcyon.com> (raw)
In-Reply-To: 7a974k$u8r$1@news.alphalink.com.au

On Mon, 15 Feb 1999 13:08:42 +1100,
Greg Robson-Garth <gregr@alphalink.com.au> wrote:
>Is there a way of enumerating (listing) current running processes in DEC
>UNIX from a C program?
>
>I currently call the the 'table' C function but it requires superuser (root)
>permissions. Are there any functions which can do this without needing
>superuser access ?

Well, there's always the old standby of:
  popen("ps", "r")

(Many *nix systems with a /proc filesystem offer "cleaner" solutions
without superuser priveleges, but traditionally one had to rummage
around in the kernel's memory space in order to read the process
tables so that one can extract this information, and that clearly
is a root-only proposition.)

		--Ken Pizzini



  reply	other threads:[~1999-02-20  5:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-02-15  5:00 enumerating processes: DEC OSF/1 Greg Robson-Garth
1999-02-20  5:00 ` Ken Pizzini [this message]
1999-03-08  5:00   ` Ron Feral
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox