I\'m trying to run some third party bash scripts from within my ruby program.
Before I can run them they require me to source a file. On the command line it all wor
Do this:
$ source whatever.sh $ set > variables.txt
And then in Ruby:
File.readlines("variables.txt").each do |line| values = line.split("=") ENV[values[0]] = values[1] end
After you've ran this, your environment should be good to go.