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