From: Tim Wolak Date: 2008-06-14T00:24:39+09:00 Subject: Re: looping >> if(t == procFile && list =~ /FutBal\d{8}.txt/) >> Dir.chdir("/tmp") >> ftp.gettextfile(list, localfile = File.basename(list)) >> exit > > Perhaps you didn't mean to call "exit?" > > -Dana Even if I take that out it still only reads one file in and skips right to the sleep not looking at the other files. Thanks, Tim -- Posted via http://www.ruby-forum.com/.