#!/bin/bash
/***************************************************************
* Last modified : 2019-09-20
* Description : Upload the file to the FTP server
* Email : shenb@iflybank.com
* ************************************************************/
#REVAL=0
ftp -v -n 192.168.241.130<<EOF
user ftpuser ftpuser
binary
hash
#ftp 服务器路径
cd /home/ftpuser
#本地文件路径
lcd /home/ftp
prompt
mput *
bye
EOF
#删除文件
# cd /home/ftp
# rm -rf *
FTP脚本
最新推荐文章于 2023-07-26 15:10:31 发布