Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy environment variables #2

Open
noseratio opened this issue Feb 28, 2019 · 1 comment
Open

Copy environment variables #2

noseratio opened this issue Feb 28, 2019 · 1 comment

Comments

@noseratio
Copy link
Owner

The admin console launched by wsudo doesn't inherit any non-default environment variables which might have been set in the calling process. I plan to clone the whole set of env vars and make it available to the admin console and its child processes. It might be a bit complicated because the command line size for cmd.exe is limited to 8K. I need to use some form of IPC other than the base64-encoded json passed as command line arg I use. Something like a memory mapped file, perhaps.

@wtfzambo
Copy link

This would be a great addition, as some non default env variables might be essential to run a specific command.

Example: I use "AWS_PROFILE" to interface with different AWS envs through the CLI. I need to have that set to be able to run aws CLI commands. But if I have to also use "wsudo" (for example to copy the contents of a bucket locally), I also need the profile to transfer over the admin shell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants