Re: Manipulating Environment Variables of an Already running process

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <hnassrat@xxxxxxxxx> 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 majordomo@xxxxxxxxxxxxxxx
> 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs


[Index of Archives]     [Audio]     [Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Fedora Users]

  Powered by Linux