environment variable access across different process on the system
Is there any way to access some of the environment variables of one process in another process ?
for example, a daemon running on the system has some environment variable exported. Now I'm writing a c++ utility that will run independently of the daemon, but it needs some of the environment variables of the daemon for its functionality. Since this utility is not the child process of the daemon process, it doesn't have any access to those environment variable. So, is there any way to access those variables ?
One way I thought was to somehow make this utility a child process of that daemon, but don't know how it can be done ?
Please enlighten on this.