On 6/13/06, Peter Bailey <pbailey / bna.com> wrote:
> When I try and run a script that has this as part of it, RUBY keeps
> complaining about my "end" statement. Can someone please help me with
> this? What's its problem with it?
>
> Thanks.
>
>
>
> ps2kfiles =
> Dir.glob("{aacmc7,acm059,acm061,acmc59,acmt59,adc064,adm064,cbncc7,
> cgmpr,cpslit,cpsmco,edc131,edt131,eeomc7,emgc15,hcc201,hcci01,hct201,hcti01,
> hla020,hlai20,hlb020,hlbi20,hltc20,hlti20,ierc78,itc101,jsc047,lrc013,lrfl21,
> lrnm21,lrrc21,lrrc22,lrrc24,lrrc37,lrrc49,lrrc74,lrrmc6,lrrt37,mopc68,mopd68,
> mopec8,mopt68,pgc117,pslc45,psvc45,rt013,rtc129,uln007}*.pdf")
> ps2kfiles.each do |ps2kfile|
>         ftp = Net::FTP.open('quark.bna.com')
>         ftp.login('pb4072','retep1')
>         ftp.chdir('/home/pb4072')
>         #ftp.chdir('/prod/data/pdf/index-wip')
>         ftp.putbinaryfile(#{ps2kfile})

Just staring at it, perhaps you meant:
ftp.putbinaryfile("#{ps2kfile}")


Les