From: nobu.nokada@... Date: 2003-12-21T15:52:36+09:00 Subject: Re: Scheduling alarms Hi, At Sun, 21 Dec 2003 13:24:50 +0900, > Google found a post by Dave Thomas from 2001 [ruby-talk:16527] which > sugests the use of a thread to schedule the alarm. Is this still the > prefered way to do this? You can also use timeout.rb. require 'timeout' begin Timeout.timeout(2) do line = gets puts "You said #{line}" end rescue Timeout::Error puts "too slow!" end -- Nobu Nakada