gpt4 book ai didi

file - 使用 ftp 从远程机器下载文件的 shell 脚本

转载 作者:行者123 更新时间:2023-12-04 16:34:24 25 4
gpt4 key购买 nike

我有

host name      :  "ftp.flowers.com" 
username : "name"
password : "123"
directory path : "/flower/rose"

我必须从中下载“红色”文件。以下脚本不起作用
ftp -in ftp.flowers.com << SCRIPTEND
user name 123
binary
cd /flower/rose
mget red
SCRIPTEND

最佳答案

使用 wget 会简单得多:

wget ftp://name:123@ftp.flowers.com/flower/rose/red

关于file - 使用 ftp 从远程机器下载文件的 shell 脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18914451/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com