Re: How can I access the environment of another process?
Re: How can I access the environment of another process?
- Subject: Re: How can I access the environment of another process?
- From: Michael Marti <email@hidden>
- Date: Wed, 12 Mar 2003 15:51:23 +0000
Dear Jim
Thank you very much for your answer!
The jobs use LAM/MPI for inter process communication. Therefore they will
always be in a different process group than the job script (and even in
different nodes).
I never used the Mach API. So I would appreciate very much if you could tell
me where to start: What documents can I read? Where is the documentation if
this API? What function would I use to read the environment?
Thanks again!
Michael.
>
On Tuesday, March 11, 2003, at 04:17 PM, Michael Marti wrote:
>
> Can anyone tell me, how I can access the environment variables of a
>
> process
>
> of which I have the kinfo_proc structure.
>
>
The environment variables are available in the address space of the
>
process, and you can use Mach APIs to read the address space of other
>
processes. But before describing how that could be done...
>
>
> We are running a computation cluster with 20 Dual G4's. The job
>
> scheduling
>
> system sometimes leaves some processes on the node after it kills a
>
> job.
>
>
Can the job system be modified to create all these processes in the
>
same process group? It sure would make "reaping" them much easier.
>
>
--Jim
>
--
----------------------------------------------------------------------------
Michael Marti
Centro de Fisica dos Plasmas
Instituto Superior Tecnico
Av. Rovisco Pais
1049-001 Lisboa
Portugal
Tel. +351 21 841 93 79
----------------------------------------------------------------------------
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.