Re: Manipulating Environment Variables of an Already running process

Joel Fernandes <[email protected]>
Newsgroups gmane.linux.newbie
Message-ID <[email protected]>
You could probably do it with ptrace(2) with request = PTRACE_POKEDATA

thanks,
Joel

On Tue, Oct 12, 2010 at 3:05 PM, Hatem Nassrat <[email protected]> wrote:
> Is it possible to, manipulate an environment variables of an already
> running process (using a current linux distro, and not a self hacked
> kernel)?
>
> A usecase, changing the PS1 environement var of an already running
> bash process from another bash process.
>
> Any ideas?
>
> --
> Hatem Nassrat
> --
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to [email protected]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs
>
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.