From: Mark T Date: 2010-08-21T11:07:37+09:00 Subject: Re: Net SSH Problem? This works here.... require "rubygems" require "net/ssh" opts = {} opts[:password] = #omitted, but triple-checked for correctness #actual server, user names omitted to protect the innocent sess = Net::SSH.start("snip", "snip", opts) #this works fine, outputting my_user's home dir rslt = sess.exec!("pwd").strip p rslt #Here, "...in the block" never prints sess.exec "pwd" do |ch, stream, data| p "...in the block" if stream == :stderr then p "Error: #{data}" else p data end end #================================== MarkT