Hi,
I know that this question might not be in the right forum but maybe one of you smart guys knows an answer.
I have an app that basically launches another process (I'm using wxWidgets, and this uses fork() and execvp()). This new process (that is a csh script or whatever it is called) requires a certain env var to be set before it is launched - this is done by my program.
The app is portable, and under Windows, it works without problems, but under Linux it fails - the env var seems to be not inherited. We tried several methods, and all failed (like calling system("export var=...") before launching the process).
When manually setting the env var before launching my app, it seems to work - the env var is inherited. But if my app sets this var, it just doesn't want to work...
I require some advice here; maybe it's something totally stupid...