I agree with Labret, as an alternative if you're feeling the urge to program, Net::FTP in perl works very nicely for stuff like this. Although in the best case if you had shell access, it would be quickest/easiest to log into machine y, and download directly from machine x. (maybe using wget, or ncftpget/put)
If it's the same files all the time, just throw it in cron on machine y. If they're windows hosts though, it might be a whole other headache
