std out message from threads

J

Junkone

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top