From: Arul hari Date: 2007-10-19T15:30:27+09:00 Subject: Anybody tell me about net/ftp protocol ? Dear Friends, I am having the source code like this. require 'net/ftp' ftp = Net::FTP::new("ftp.ruby-lang.org") ftp.login("anonymous", "matz@ruby-lang.org") ftp.chdir("/pub/ruby") tgz = ftp.list("ruby-*.tar.gz").sort.last print "the latest version is ", tgz, "\n" ftp.getbinaryfile(tgz, tgz) ftp.close while running this code It is not working properly. as long as it is simply running,But I am not getting any result. After pressing ctrl+c I got the error like this. Please anybody clarify my doubts. The error is: /usr/lib/ruby/1.8/net/ftp.rb:211:in `readline': Interrupt from /usr/lib/ruby/1.8/net/ftp.rb:211:in `getline' from /usr/lib/ruby/1.8/net/ftp.rb:221:in `getmultiline' from /usr/lib/ruby/1.8/net/ftp.rb:235:in `getresp' from /usr/lib/ruby/1.8/net/ftp.rb:251:in `voidresp' from /usr/lib/ruby/1.8/net/ftp.rb:176:in `connect' from /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize' from /usr/lib/ruby/1.8/net/ftp.rb:174:in `connect' from /usr/lib/ruby/1.8/net/ftp.rb:136:in `initialize' from net.rb:3:in `new' from net.rb:3 -- Posted via http://www.ruby-forum.com/.