From: Peter Bailey Date: 2006-05-10T21:15:29+09:00 Subject: Re: RUBY on 64-bit Windows PCs. Justin Collins wrote: > Berger, Daniel wrote: >>>>> -----Original Message----- >>>>> >>>> >>>> end >>> Yes, I know that I'm iterating ftps here. But, it works on multiple >> Indulge me - try using a non-block form of Net::FTP and see if it makes >> end >> >> > Shouldn't that be something like: > > cindexfiles = Dir.glob("*_*-*.pdf") > > ftp = Net::FTP.open('mpc.bna.com') > ftp.debug_mode = true > ftp.passive = true > ftp.login('peterb','pbail') > ftp.chdir('/data/ps2000test') > > cindexfiles.each do |cindexfile| > ftp.putbinaryfile(cindexfile) > end > > ftp.close > > > ? > > -Justin Yes, that's definitely smarter. I thought about it last night, and, of course, it's smarter to iterate just the files rather than the whole ftp transaction. But, anyway, I tried this again this morning with IRB, just sending one file, not many, and it freezes as soon as I type in the "end." -- Posted via http://www.ruby-forum.com/.