wget .listing文件,有没有一种方法可以指定它的名称 [英] wget .listing file, is there a way to specify the name of it

查看:51
本文介绍了wget .listing文件,有没有一种方法可以指定它的名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好,所以我需要运行wget,但是我被禁止在需要运行wget的位置中创建点"文件.所以我的问题是我可以让wget使用我可以指定的.listing以外的名称吗?".

Ok so I need to run wget but I'm prohibited from creating 'dot' files in the location that I need to run the wget. So my question is 'Can I get wget to use a name other than .listing that I can specify'.

进一步说明:这是将ftp文件夹与本地ftp文件夹同步/镜像,因此使用-O选项并不是真正有用,因为我要求所有文件都保持格式.

further clarification : this is to sync / mirror an ftp folder with a local one, So using the -O option is not really useful, as I require all files to maintain format.

推荐答案

您可以使用 -O 选项设置输出文件名,如:

You can use the -O option to set the output filename, as in:

wget -O file http://stackoverflow.com

您还可以使用 wget --help 获得完整的选项列表.

You can also use wget --help to get a complete list of options.

对于后来出现并为错误问题的答案感到惊讶的人们,以下是其中一项评论的副本:

For folks that come along afterwards, and are surprised by an answer to the wrong question, here is a copy of one of the comments below:

@FelixD,是的,很遗憾,这个问题被误解了.看一下wget版本1.19(2017年2月)的代码,特别是ftp.c,看来.listing文件是硬编码在宏 LIST_FILENAME 中的,无法覆盖.镜像ftp站点可能有更好的选择-也许看看lftp及其mirror命令,其中还包括并行下载: lftp.yar.ru

这篇关于wget .listing文件,有没有一种方法可以指定它的名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆