ftp 拉去远程文件脚本
cat ftp.sh #!/bin/bash ftp -i -n 192.168.1.1 << EOF user ftpadmin gaofeng binary #二进制拉取方式 hash #打印拉取进度 cd /home/ftpadmin/nlp #进入远端目录 lcd /home/dataexa/test #拉到本地的目录 prompt #关闭y/N 的y mget * # 拉去所有(统配符) bye #关闭 EOF echo "download from ftp successfully"
来源:https://www.cnblogs.com/sxgaofeng/p/12377845.html