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

I guess it is not possible.. But does somebody knows a way of getting the values of environment from a child process to a parent process ?

Do you perhaps mean "Set environment variables within the parent (shell) process from a child (perl) process?"


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
RIP an inspiration; A true Folk's Guy
  • Comment on Re: what is the method to get the environment from child process ?

Replies are listed 'Best First'.
Re^2: what is the method to get the environment from child process ?
by myuser (Initiate) on Nov 10, 2010 at 07:22 UTC
    Setting environment in child (perl )process, and getting it in parent ( perl ) process.

    Forking a child perl process from parent perl process.
      Setting environment in child (perl )process, and getting it in parent ( perl ) process. Forking a child perl process from parent perl process.

      You are suggesting using environment vars as an IPC mechanism?

      If so, I don't believe that is possible on any multi-tasking OS.


      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.