Based on my understanding of the code, it looks impossible to execute a command that redirects stdout to a file for example - so;
command > /tmp/myoutput won't work.
This is because of the line;
Open3.popen3(cmd) do |stdin, stdout, stderr|
Which I understand tells Ruby to capture the stdout of the executed command.
Is there any workaround available ?