From: Francis Cianfrocca Date: 2006-05-04T04:07:34+09:00 Subject: Re: problems ftp'ing with RUBY ------=_Part_4191_19924921.1146683250144 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Did you run a network snoop to see if the FTP session is even getting out o= f your machine? On 5/3/06, Peter Bailey wrote: > > unknown wrote: > > On Thu, 4 May 2006, Peter Bailey wrote: > > > > try > > > >> require 'net/ftp' > >> indexfiles =3D Dir.glob("*.pdf") > >> indexfiles.each do |indexfile| > >> ftp =3D Net::FTP.open('mpc.bna.com') do |ftp| > > > > ftp.passive =3D 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/. > > ------=_Part_4191_19924921.1146683250144--