From: Peter Bailey Date: 2006-05-04T00:19:43+09:00 Subject: problems ftp'ing with RUBY I need to ftp PDF files to our printer. Using the script below, I'm trying to do that, but, it ain't working. It just sits there. I ftp manually to the same site to see if anything's getting there, and, no, nothing is. Can someone see what's wrong here? I've tried it with IRB, too, but that doesn't work either. Thanks. require 'net/ftp' indexfiles = Dir.glob("*.pdf") indexfiles.each do |indexfile| ftp = Net::FTP.open('mpc.bna.com') do |ftp| ftp.login('username','password') ftp.chdir('/data/bnaindex') ftp.putbinaryfile("indexfile") end end -- Posted via http://www.ruby-forum.com/.