Is there a way to modify the environment of a running process in Solaris 9/10?

  • Follow


Hello.
Is there any way to change environment variable of a running process?
Ex.  attaching a process to mdb and then changing some variables?

What I want.

Process A is running with PID=1000.
1)pstop 1000
2)Modification (in  any manner) to A variables
3)prun 1000.

Is possible?
Is possible also for the user owner of the process?


Thanks
0
Reply paolfili 4/7/2008 4:01:26 AM

On 2008-04-07, paolfili@supereva.it <paolfili@supereva.it> wrote:
> Is there any way to change environment variable of a running process?
> Ex.  attaching a process to mdb and then changing some variables?

Yes, that is possible but not recommended. Changing environment variables
would be feasible as long as you just want to modify existing environment
variables and you would not want to extend their length. Otherwise you
run into the trouble of having to allocate memory in another process.

> Is possible also for the user owner of the process?

Yes.

Andreas.
0
Reply comp 4/7/2008 6:21:20 AM


1 Replies
435 Views

(page loaded in 0.032 seconds)

Similiar Articles:













7/23/2012 6:09:17 AM


Reply: