From: Cd Cd Date: 2007-09-12T13:37:39+09:00 Subject: Re: Threads and daemons > > Whenever I see `...` or %x{...} without it being an assignment it > triggers me to question it. > >> So do I move join into the do/end block? > > Try this modification to your program: > > #!/usr/bin/env ruby > threads = [] > 4.times do > threads << Thread.new do > output = %x{/usr/local/bin/party} > puts "party output: " + output > end > end > threads.each{|thr| thr.join} > exit 0 > > Is there any output from your "party" program? I am hoping there will > be errors shown there that were not displayed before that will lead > you to the problem. > I see Welcome to PARTY! Type '?' for help: When I step through the program via the ruby debugger. Sometimes ill see the same thing when I run the program. It varies from run to run -- Posted via http://www.ruby-forum.com/.