A very useful script to transfer a file in FTP without interaction.
You can schedule in crontab to trasfer everything you want to a server. simply adjust parameter and voilà…
To GET a file instead of PUT simply change the line

put $FILE
 

to

get $FILE
 

This is the code..

#!/bin/sh
HOST=your.ftp.server
USER=username
PASS=password
FILE=file.to.transfer
ftp -n<<EOF
open $HOST
quote user $USER
quote pass $PASS
put $FILE
bye
EOF