[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

std out message from threads

Junkone

12/23/2007 6:16:00 PM

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