in reply to what is the method to get the environment from child process ?

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.


Enjoy, Have FUN! H.Merijn
  • Comment on Re: what is the method to get the environment from child process ?
  • Download Code