| incognito (65) | |||||
I have two processes. I want to set an environment variable in one process and check it in another in my C program.
Following are the questions. 1. Is it correct method to set env variable inside system call? 2. Is the scope visible to both the process? If not, then how do I do it? Any help will be greatly appreciated. :) I am pretty new to this so haven't tried it before. | |||||
|
|
|||||
| kbw (5371) | |
| Environments are inherited, it's not a global resource. The two apps can't communicate that way. You'll have to resort to a traditional IPC mechanism. | |
|
|
|