This paragraph is just a piece of chart, providing a idea
ftp -i -v -n hostname << End_ftp
User UserName Passwd
bin
LCD
Get filename
BYE
END_FTP
Then chmod is executable
Put cron!
Use the Korn shell to write!