# File rbot/utils.rb, line 127def Utils.safe_exec(command, *args)
IO.popen("-") {|p|
if(p)
return p.readlines.join("\n")
elsebegin
$stderr = $stdout
exec(command, *args)
rescue Exception => e
puts "exec of #{command} led to exception: #{e}"
Kernel::exit! 0
end
puts "exec of #{command} failed"
Kernel::exit! 0
end
}
end