file=`ls -lrt $HOME/kpi/log | tail -1 |awk -F " " '{print $9}'`
hostname="10.109.17.5"
username="echnweb"
passwd="echnweb_123"
ftp -vn $hostname <<EOF
quote USER $username
quote PASS $passwd
binary
put $HOME/kpi/log/$file
by
EOF
file=`ls -lrt $HOME/kpi/log | tail -1 |awk -F " " '{print $9}'`
hostname="10.109.17.5"
username="echnweb"
passwd="echnweb_123"
ftp -vn $hostname <<EOF
quote USER $username
quote PASS $passwd
binary
put $HOME/kpi/log/$file
by
EOF