Error using net::ftp

S

sagar

Has anyone seen something like this -

problemreport-PVTQA01-200704190111.gz
/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:in `retrbinary'
from /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'
from /usr/lib/ruby/1.8/net/ftp.rb:401:in `retrbinary'
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:in `retrlines'
from /usr/lib/ruby/1.8/net/ftp.rb:424:in `loop'
from /usr/lib/ruby/1.8/net/ftp.rb:424:in `retrlines'
from /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'
from /usr/lib/ruby/1.8/net/ftp.rb:421:in `retrlines'
from /usr/lib/ruby/1.8/net/ftp.rb:627:in `list'
from bin/download_files.rb:9



ftp = Net::FTP.new('files')
ftp.login(user = "xxx", password="xxx")
ftp.chdir('processed')
ftp.list() {|report|
report =~ /(.*)(problemreport.*)/
puts $2
ftp.getbinaryfile($2,$2,1024)----> this is line 12

}
ftp.close

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,708
Latest member
SherleneF1

Latest Threads

Top