diff --git a/src/mad/ruby/CommandManager.rb b/src/mad/ruby/CommandManager.rb index 270e35ad29..3d5f0b81b8 100644 --- a/src/mad/ruby/CommandManager.rb +++ b/src/mad/ruby/CommandManager.rb @@ -144,6 +144,10 @@ private terminator_e = nil mutex = Mutex.new + # print stdout and stderr for troubleshooting + STDERR.puts o.read + STDERR.puts e.read + out_reader = Thread.new { o.read } err_reader = Thread.new { e.read } terminator = Thread.new { diff --git a/src/mad/ruby/HostSyncManager.rb b/src/mad/ruby/HostSyncManager.rb index 64e4319597..4716acf899 100644 --- a/src/mad/ruby/HostSyncManager.rb +++ b/src/mad/ruby/HostSyncManager.rb @@ -64,7 +64,7 @@ class HostSyncManager end assemble_cmd = lambda do |steps| - "exec 2>/dev/null; #{steps.join(' && ')}" + "exec 2>&1 /dev/null; #{steps.join(' && ')}" end case copy_method