2009/8/21 Hunt Jon <jona.hunt777 / gmail.com>:
> 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/