From: Axel Date: 2009-07-30T22:15:09+09:00 Subject: Re: thread exec I think, your script is missing Thread::join: > domains = ['www.bim.com','www.bum.com','www.bam.com'] > .. > def check (host,domain,timeout) >   puts "checking... #{host} -> #{domain}" >   timeout(timeout) do >    begin >     `/usr/bin/nslookup #{domain} #{host}` >    rescue Timeout::Error >    end >   end > end > > iplist.each { |host| >  threads << Thread.new(host) { |host| >   domains.each do |domain| >    check(host,domain,timeout) >   end >  }} > threads.each {|th| th.join } (Not tested.) -Axel