On Wed, 14 Jul 2004, Lior Kesos wrote:

> Hi, I'm trying to manipulate a running procces's environment variable
> while it's running.
> II know that some /proc entries are tunable and so if I could tune
> /proc/target_pid/environ that would be great but prior googling stated
> that only /proc/sys (probebly /sys in 2.6) entires are
> tunable/writable...
> So I'm out of ideas ...

attach a debugger to the process, anf invoke the proper 'setenv' function
call. be carefull not to do any damage, or you might crash the application
- better experiment with an unimportant process first, and then automate
this (gdb can be automated, i.e. read commands from a file).

-- 
guy

"For world domination - press 1,
 or dial 0, and please hold, for the creator." -- nob o. dy

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to