Error using net::ftp

Has anyone seen something like this -

/usr/lib/ruby/1.8/net/ftp.rb:339:in transfercmd': 200 PORT command successful. Consider using PASV. (Net::FTPReplyError) from /usr/lib/ruby/1.8/net/ftp.rb:403:inretrbinary’
from /usr/lib/ruby/1.8/monitor.rb:238:in synchronize' from /usr/lib/ruby/1.8/net/ftp.rb:401:inretrbinary’
from /usr/lib/ruby/1.8/net/ftp.rb:503:in getbinaryfile' from bin/download_files.rb:12 from /usr/lib/ruby/1.8/net/ftp.rb:432:inretrlines’
from /usr/lib/ruby/1.8/net/ftp.rb:424:in loop' from /usr/lib/ruby/1.8/net/ftp.rb:424:inretrlines’
from /usr/lib/ruby/1.8/monitor.rb:238:in synchronize' from /usr/lib/ruby/1.8/net/ftp.rb:421:inretrlines’
from /usr/lib/ruby/1.8/net/ftp.rb:627:in `list’
from bin/download_files.rb:9

ftp =‘files’)
ftp.login(user = “xxx”, password=“xxx”)
ftp.list() {|report|
report =~ /(.)(problemreport.)/
puts $2
ftp.getbinaryfile($2,$2,1024)----> this is line 12


If I go into ftp.rb and simply comment out line 339 above everything
works fine.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs