使用expect ftp免交互上传文件

防火墙关掉! 1 安装expect命令 yum -y install expect 2 vim ftp_upload.sh #!/usr/bin/expect spawn ftp localhost #执行ftp命令 expect “Name*” #如果出现Name字符 send “ftp\n” #则输入ftp并回车 expect “ftp>" send “cd pub/other\n” expe
相关文章
相关标签/搜索