From: Sampurna Mishra Date: 2006-10-13T13:26:10+09:00 Subject: Re: Execution of rubyfile in remote machines Can i please get a solution to my problem ? Can anybody in the list share their knowledge with me. Can anybody provide a right pointer to solve this problem. Help will be highly appreciated. Thanks in advance.... Sampurna Sampurna Mishra wrote: > Hi, > I installed ruby gem and again excuted the ruby file and got this > error. > c:/ruby/lib/ruby/site_ruby/1.8/net/ssh/transport/session.rb:88:in > `initialize': Bad file descriptor - connect(2) (Errno::EBADF) > from c:/ruby/lib/ruby/site_ruby/1.8/net/ssh/transport/session.rb:88:in > `initialize' > from c:/ruby/lib/ruby/1.8/timeout.rb:48:in `timeout' > from c:/ruby/lib/ruby/1.8/timeout.rb:76:in `timeout' > from c:/ruby/lib/ruby/site_ruby/1.8/net/ssh/transport/session.rb:87:in > `initialize' > from > c:/ruby/lib/ruby/site_ruby/1.8/net/ssh/transport/services.rb:121:in > `register_services' > from c:/ruby/lib/ruby/gems/1.8/gems/needle-1.3.0/lib/needle/lifecycle/singleton.rb:42:in > `call' > from c:/ruby/lib/ruby/1.8/thread.rb:135:in `synchronize' > from > c:/ruby/lib/ruby/gems/1.8/gems/needle-1.3.0/lib/needle/lifecycle/singleton.rb:40:in > `call' > ... 19 levels... > from > c:/ruby/lib/ruby/gems/1.8/gems/needle-1.3.0/lib/needle/container.rb:107:in > `define' > from c:/ruby/lib/ruby/site_ruby/1.8/net/ssh/session.rb:97:in > `initialize' > from c:/ruby/lib/ruby/site_ruby/1.8/net/ssh.rb:47:in `start' > from session.rb:7 > > Is the following program is right? or i am passing wrong no of > arguments in start function. > require 'net/ssh' > > session = Net::SSH.start( 'localhost' ) > > session.close > > Can you please provide me some small examples to start a session in > local machine as well as in remote machine. > > Help Please!! -- Posted via http://www.ruby-forum.com/.