So I’m trying to run a executable from my ruby script, and pass in some parameters to it at the same time.
currently i have:
command = Thread.new do
return_code = system('\\\\file-server\\share1\\data_app.exe -gTest -d20120914')
end
command.join
But this doesn’t work.
Anyone know where I’m going wrong?
Thanks!
So I managed to figure it out. It was related to how my application functions and looks for it’s dependancies. I needed to set the working directory before calling the application, which you can do with:
Thanks for your help!