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

Via a pipe would be an obvious choice. Practically any means of transferring data from the child to the parent could be used to transmit environment variables.
  • Comment on Re: what is the method to get the environment from child process ?