From: Peter Bailey Date: 2006-05-04T04:03:10+09:00 Subject: Re: problems ftp'ing with RUBY unknown wrote: > On Thu, 4 May 2006, Peter Bailey wrote: > > try > >> require 'net/ftp' >> indexfiles = Dir.glob("*.pdf") >> indexfiles.each do |indexfile| >> ftp = Net::FTP.open('mpc.bna.com') do |ftp| > > ftp.passive = true > >> ftp.login('username','password') >> ftp.chdir('/data/bnaindex') >> ftp.putbinaryfile("indexfile") >> end >> end > > -a Thanks for your response. Unfortunately, it still didn't work. For the time being, I've just re-done my script to exit out and execute a script from another language. -- Posted via http://www.ruby-forum.com/.