Leslie Viljoen wrote: > I have a script that needs to run unattended every night, and I need > to log if it throws an exception anywhere. Is this as simple as > putting a begin..rescue..end around the top-most statements? I know > that doesn't work in C#. Is there a hook or some way that a catch-all > is supposed to be done in Ruby? > > Les This should catch everything, AFAIK: begin ... rescue Exception => err puts err end If there is nothing but function calls between "begin" and "rescue", e.g. if the entire executable block lies there, this should do it. -- Paul Lutus http://www.arachnoid.com