From: ashbb Date: 2011-09-13T20:39:08+09:00 Subject: Re: green shoes and ssh --00151747ba2cdd7bf904acd11691 Content-Type: text/plain; charset=ISO-8859-1 Hi foxmaster, I just tried the following (without Green Shoes), but it didn't work well (got no response). require 'rubygems' require 'net/ssh' Net::SSH.start( 'hostname', 'xxxxx', :password => "xxxxxx" ) do |ssh| ssh.open_channel do |channel| channel.on_data do |ch, data| puts data channel.exec "ls -la" do |ch, success| if success then puts "succsess" else puts "Fail" end end end end end If you want to do just only "ls -la" and get back the outputs. Try out the following. It worked at least on my Windows 7. require 'rubygems' require 'net/ssh' require 'green_shoes' Shoes.app do button "Connect" do Net::SSH.start( 'hostname', 'xxxxx', :password => "xxxxxx" ) do |ssh| append{para ssh.exec! 'ls -la'} end end end Regards, ashbb --00151747ba2cdd7bf904acd11691--