linux - 破译 wget 命令

标签 linux cron wget

我正在尝试设置一个 cron 作业,我收到了以下命令:wget -0 - -t 1 但我无法完全弄清楚如何使用此资源: http://www.computerhope.com/unix/wget.htm .

-0 - -t 1 是什么意思?谢谢!

最佳答案

根据您链接的 wget 手册(以及我自己在 Ubuntu 机器上的 man wget),没有 -0 选项。也许它应该是大写字母 O?

这是有道理的,因为 -O 用于指定输出文件名。

-O file: The documents will not be written to the appropriate files, but all will be concatenated together and written to file. If - is used as file, documents will be printed to standard output, disabling link conversion.

-t代表重试次数

关于linux - 破译 wget 命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40178765/

相关文章:

linux - 如何在同一台机器上的两个网卡之间发送流量(ubuntu 12.04)

c - Linux:printf 到完整的标准输出

c - 在保留 CAP_SYS_NICE 的同时删除根 UID

android - 使用批处理文件在 linux shell 中运行命令

php - Laravel5.2 调度 :run don't work with cron job

java - 多个 cron 表达式触发 jenkins 构建

php - 在 laravel 时间间隔内安排作业

尝试下载文件时,Python 请求抛出 Connection Broken : ChunkedEncodingError with http. client.IncompleteRead

linux - wget:下载的文件名

linux - 解析代理 URL 时出错。端口号错误