From: Robert Klemme Date: 2009-08-21T16:11:32+09:00 Subject: Re: Showing dot each second until the script ends 2009/8/21 Hunt Jon : > I have a ruby script, which takes about 20 seconds to execute. > > I want to show a dot (.) sign each second. > > I think I need to use "sleep" method and a loop, > but I don't know how to add the functionality to my script. > > Any help would be appreciated. Here's one way: create a separate thread that loops infinitely and does the sleeping and printing. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/