From: "Iñaki Baz Castillo" Date: 2011-02-02T19:36:36+09:00 Subject: Re: How to know the exit status within at_exit() block? 2011/2/1 Josh Cheek : > How about stick your own exit method before Kernel in the lookup chain > > class Object >  private >  def exit(status=true) >    at_exit { >      puts "exiting with status #{status}" >    } >    super >  end > end That could work. Then I need to store status in an Object attribute or a global variable so I can also check it within at_exit block. Thanks. -- Iñaki Baz Castillo