I'm trying to run some third party bash scripts from within my ruby program. Before I can run them though they require me to source a file. On the command line it all works fine but within ruby it doesn't work. Ive found out that system commands will open a new child shell process and any sourcing will be done in that and cant be seen from the parent shell process running the ruby script. When the system call ends the child shell is also killed.
So i'm wondering how do i get round this problem?