Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Running scripts in Ruby
cmd = "#{SCRIPTS_HOME}/bin/run_load.sh #{SCRIPTS_CONFIG} #{@file.file_upload.path}";
logger.info cmd;
Open3.popen3(cmd) do |i, o , e|
logger.info "CMD STDOUT " << o.read
logger.info "CMD STDERR " << e.read
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment