From: Matthew Desmarais Date: 2005-11-04T03:33:00+09:00 Subject: Re: Continous running thread iamscottwalter@gmail.com wrote: >Ok I changed it to: > >thread = Thread.new do > while true > puts "Scott" > sleep 10.0 > end > end > >However, it only executed once and exits. It doesn't even wait 10 >seconds before exiting. This is driving me crazy. > > > Hi Scott, If you look at one of the previous responses (from Bob Showalter) youl'l find your answer. Try adding: thread.join to the end of your script. You may also need to flush the IO at some point to get the timing of the output to work correctly. Hope this is helpful. Matthew