Hi,
I have some problems with invoking a shell script out of a c++ program.
The shell script is setting paths with "export PATH=/home/test/gcc/" .
When within my program I use
"string sysCall = "source " + locationOfScrtip;"
[locationOfString is a string containing the location of the script] and
"system( sysCall.c_str() );"
the paths are not set. When I run the script in bash with
"source pathToScrtip" the paths are set correctly .
Any ideas how to solve that problem?
Thanks
Chris