Std out message from threads

hello i am running multiple theads like this

thread1=Thread.new do
puts "Thread 1 started "
system(“start E:\TradingTools\IBController
\IBControllerStart_customised.bat”)
end
#end
thread2=Thread.new do
puts "Thread 2 started "
application = WIN32OLE.new(“Broker.Application”)
end

When thread1 starts, it sometimes outputs some error messages as i can
see it being printed to the ruby console.How do i monitor the text
being printed by thread1 so that i can shut down the thread1 if needed

seede

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs