From: Aldric Giacomoni <"aldric[remove]"@...> Date: 2009-02-06T23:49:59+09:00 Subject: Re: Is there something built-in for this ? Thibaut Barr�re wrote: > Hi, > > very often I use this method: > > def launch(cmd) > raise "Error launching #{cmd}" unless system(cmd) > end > > Is there a built-in equivalent ? > > cheers, > > -- Thibaut > begin system(cmd) rescue NameError => e puts e end ... Does that help you ? --Aldric