HOST='ftp.d1096665-5220.site.myhosting.com'

USER='drewibbo'

PASSWD='monkeykangaroo'

FOLDER='/webspace/httpdocs/pifiles'

logname=$(date +"%d-%m-%Y")

FILE="temp_log_$logname.txt"



ftp -n $HOST <<END_SCRIPT

quote USER $USER

quote PASS $PASSWD

cd $FOLDER

put $FILE

quit

END_SCRIPT

exit 0
