From: Sampurna Mishra Date: 2006-10-12T19:02:31+09:00 Subject: Re: Execution of rubyfile in remote machines Hi... Thanks Dr Nic. I installed 'net/ssh' module on my window machine by using ruby setup.rb config ruby setup.rb setup ruby setup.rb install and then in a separate program i wrote to start a session in a local machine like this... require 'net/ssh' session = Net::SSH.start( 'localhost' ) session.close Then I got following error.I am using ruby 1.8.4. c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__': no such file to load -- needle (LoadError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require' from c:/ruby/lib/ruby/site_ruby/1.8/net/ssh/session.rb:17 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require' from c:/ruby/lib/ruby/site_ruby/1.8/net/ssh.rb:17 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require' from session.rb:3 Please help how to get rid of this. Thanks in Advance. Sampurna. Dr Nic wrote: > Sampurna Mishra wrote: >> Hi All, >> >> I need to run ruby files in remote machine. >> Can anybody share their knowledge how to do this. > > Capistrano (http://manuals.rubyonrails.com/read/book/17) uses the > Net::SSH library to log into remote machines and execute commands. > > If you want complete control, just use the Net::SSH library > (http://net-ssh.rubyforge.org/) -- Posted via http://www.ruby-forum.com/.