Hello,
The short version of my question: Can one do equivalent of “source file.bash” from within ROOT?
The longer version of my question follows:
I am trying to define a number of environment variables from within ROOT using a bash file as an input. For example, I tried to do the following:
const string iniFilePath = "file.bash";
gSystem->Exec(Form("source %s",iniFilePath.c_str()));
where “file.bash” is just a number of environment variable definitions, like this:
but this approach did not work, i.e. when I try to get the variables I declared like this:
I can see, that none of the variables defined in “file.bash” can be accessed from withing ROOT.
Thank you,
Siarhei.