#!/bin/bash

filename='stat.sh'
hostname='ftp.qla13.webd.pro'
username='pi@soleckujawski.com'
password='Zmal1)q'

ftp -inv $hostname <<EOF

quote USER $username
quote PASS $password
bin
put $filename
quit

EOF

exit 0