When you are running on an OS that has/supports the proc filesystem, you could read /proc/$pid/environ, but I'm not sure if that is (always) updated if the environment changes for the (sub)process, or that it just reflects the environment at startup. YMMV.
In reply to Re: what is the method to get the environment from child process ?
by Tux
in thread what is the method to get the environment from child process ?
by myuser
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |