* Q:Getting process info using table(2)
@ 1994-05-18 13:43 Anhhoang ha
1994-05-18 14:20 ` Melinda Shore
0 siblings, 1 reply; 2+ messages in thread
From: Anhhoang ha @ 1994-05-18 13:43 UTC (permalink / raw)
Hi,
I'm trying to get process information by calling the table
function on the DEC Alpha platform running OSF 1 (V2.0).
So far I kept getting "Not owner - EPERM" message back whenever
I use the following call to get the actual number of elements
in the process table:
nproc = table(TBL_PROCINFO, 0, (struct tbl_procinfo *)NULL, 32767, 0);
Has anyone out there seen this problem before? What kind of solution
would you propose? Thanks in advance for your input.
Ann
--
/----------------------------------------------------------------
| Anhhoang N. Ha | |
| NASA Mail Code PT4 | |
| Johnson Space Center | Phone: (713) 483-0994 |
| Houston, Texas 77058 | Email: hann@gothamcity.jsc.nasa.gov |
----------------------------------------------------------------/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Q:Getting process info using table(2)
1994-05-18 13:43 Q:Getting process info using table(2) Anhhoang ha
@ 1994-05-18 14:20 ` Melinda Shore
0 siblings, 0 replies; 2+ messages in thread
From: Melinda Shore @ 1994-05-18 14:20 UTC (permalink / raw)
In article <9405181340.AA00627@gothamcity.jsc.nasa.gov> hann@gothamcity.jsc.nasa.gov (Anhhoang ha) writes:
>So far I kept getting "Not owner - EPERM" message back whenever
>I use the following call to get the actual number of elements
>in the process table:
>
> nproc = table(TBL_PROCINFO, 0, (struct tbl_procinfo *)NULL, 32767, 0);
It's a privileged operation - you need to be root.
--
Melinda Shore - No Mountain Software - shore@tc.cornell.edu
Software longa, hardware brevis.
I DON'T SPEAK FOR CORNELL.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1994-05-18 14:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-05-18 13:43 Q:Getting process info using table(2) Anhhoang ha
1994-05-18 14:20 ` Melinda Shore
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox