ftp传送文件脚本

ftp.sh 

#!/bin/sh
ftp -v -n 192.168.1.1<<EOF
user 对端用户名 对端密码
passive
binary
put $1 $2
bye
EOF

 运行脚本:

ftp.sh /test/1.txt   /data/1.txt

猜你喜欢

转载自blog.csdn.net/modi000/article/details/126230968
今日推荐