That is what i asked how to get the environment variable from the child process to the parent process.I think it's possible on VMS, but on Unix and Windows, it isn't possible. Environment variables are private to the process. On process creation, the new process gets a copy of the environment variables of the parent, but short of peeking directly into memory, there's no easy way to get to the value of an environment variable of another process. The non-easy ways all have to do with modifying your kernel.
I'd use exit values or pipes to solve your problem.
In reply to Re: getting values from child process
by JavaFan
in thread getting values from child process
by myuser
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |