Created
December 13, 2021 07:55
-
-
Save shinh/5c3a87b845cc9952bddf1713efd4d215 to your computer and use it in GitHub Desktop.
export command
This file contains 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
pp=$(gdb -q -p $PPID -batch -ex "p (int)getppid()" -ex "quit" | awk '/^\$1 = / {print $3}') | |
gdb -q -p $pp -batch -ex "p (int)putenv(\"$1\")" -ex "quit" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment