我发送的命令是:
ftp -s:ftp.txt
以下是内容
open host.com
user
pass
lcd .
cd ./public_html/path/to/dumps
binary
mput "omega.txt2"
mput "wo.txt2"
当我运行它时,它会正常登录然后停止。如何连接后如何让它运行mput命令?
答案 0 :(得分:1)
ftp
会显示确认提示,开始上传并等待您的输入。
使用-i
命令行开关禁用提示:
ftp -i -s:ftp.txt
答案 1 :(得分:0)
尝试通过无需连接来调试脚本,然后输入cmd
来运行每个ftp命令:
ftp ftp.host.com
user
...
mput "wo.txt2"
这可能会有所帮助:
Ftp
Ftp subcommands