As others have noted, using timeout is fraught with peril, and I
myself would not use it for anything I wanted to reliably recover and
keep running.  For just killing a process, though, it may be what
you're looking for.  Although for that matter, you could just do:

  ruby  myprocess.rb &
  echo kill $! | at now + 5 hours
  fg

-- 
Avdi

Home: http://avdi.org
Developer Blog: http://avdi.org/devblog/
Twitter: http://twitter.com/avdi
Journal: http://avdi.livejournal.com