# File lib/net/ssh/connection/session.rb, line 348
348:     def exec!(command, &block)
349:       block ||= Proc.new do |ch, type, data|
350:         ch[:result] ||= ""
351:         ch[:result] << data
352:       end
353: 
354:       channel = exec(command, &block)
355:       channel.wait
356: 
357:       return channel[:result]
358:     end