-
-
Save Hiteshm01/3413516bfaef5134a749 to your computer and use it in GitHub Desktop.
To update environment variable of a running process
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$> sudo apt-get install gdb | |
$> sudo su | |
$> gdb | |
(gdb) attach process_id # insert process id instead of process_id | |
(gdb) call putenv ("env_var_name=env_var_value") # Add environmental variable | |
(gdb) detach # detach with option y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment