我正在尝试设置一个 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/