From: fox foxmaster Date: 2011-09-13T06:16:04+09:00 Subject: green shoes and ssh Hi all, Iam trying my hands on ruby green shoes but what can I say Iam stuck. Iam trying as you can see to execute a remote command on a linux box but the programs hangs when I press the "connect" button.. Now I now I am new to this so don't look down on me for making some stupid error. Any help would be nice. require 'rubygems' require 'net/ssh' require 'green_shoes' Shoes.app do button "Connect" do Net::SSH.start( '192.168.100.127', 'xxxxx', :password => "xxxxxx" ) do |ssh_connection| ssh_connection.open_channel do |channel| channel.on_data do |ch, data| puts data channel.exec "ls -la" do |ch, success| if success then alert "Done" puts "succsess" else alert "Fail" end end end end end end end -- Posted via http://www.ruby-forum.com/.