我目前有一个在 linux 服务器上运行的 shell 脚本,该服务器在 oder 中使用 wget 下载远程网页。这又由计划在特定时间运行的 cron 作业执行。
有人可以确认添加-q选项不仅会阻止所有输出返回到控制台,还会阻止 wget 写入日志或尝试创建日志文件的所有尝试吗?
Mic*_*jer 23
不,--quiet不能保证没有日志。
来自 wget 1.13 变更日志:
2008-04-22 史蒂文·舒比格
Run Code Online (Sandbox Code Playgroud)* http.c (print_response_line): Changed to make responses always be logged, even in --quiet mode, if --server-response was specified. This is to bring http.c's handling of the situation in line with ftp.c's.
| 归档时间: |
|
| 查看次数: |
35491 次 |
| 最近记录: |