Junkone
1/3/2008 8:00:00 PM
I have this code to start 4 prog in 4 separate threads. however 2 of
the ibScans and
emailProcessing threads are not even starting. dunno why.
ibScans and emailProcessing are not even starting and i dont see the
puts hitting it at all.
#require 'sendmail'
require 'twsFunctions'
require 'sendGmail'
def startIB
@ibThread=Thread.new do
system("start E:\\TradingTools\\IBController\IBControllerStart_customised.bat")
end
@ibThread.join
puts "ib started #{ @ibThread.status}"
end
def ibScans
@ibScansThread=Thread.new do
load 'twsScans.rb'
end
@ibScansThread.join
puts "ib scans started #{ @ibScansThread.status}"
end
def abScans
@abScansThread =Thread.new do
load "ABScans.rb"
end
@abScansThread.join
puts "ab scans started #{ @abScansThread.status}"
end
def emailProcessing
@emailThread=Thread.new do
while true
load 'ScansNotifier.rb'
sleep(30)
end
end
end
startIB
abScans
ibScans
emailProcessing