I am designing a ruby program that needs to run a command and store it a variable.
var = exec('some command');
This doesn't work the way I want it to, it just prints the output from the command prompt and then ends the program. So is there a function that doesn't end the program, doesn't print the cmd output and stores the information in a variable?
Thanks in advance.