`

使用shell脚本ftp文件

 
阅读更多

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

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics