Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I currently have a shell script running on a linux server which is using wget in oder to download a remote web page. This in turn is executed by a cron job which is scheduled to run at certain times.

Can someone please confirm that adding in the -q option will not only stop all output being returned to the console, but will also stop all attempts by wget to write to the logs or to try and create a log file?

share|improve this question
add comment

2 Answers 2

no, --quiet will not guarantee no logs.

from wget 1.13 ChangeLog:

2008-04-22 Steven Schubiger

   * 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.
share|improve this answer
    
+1 good finding. –  rozcietrzewiacz Sep 2 '11 at 16:20
add comment

With -q option, wget itself should not output anything to either console nor the logfile specified by -o option, except for the case described by Michał. The logfile however will be created (if -o was supplied).

This however does not guarantee that no system daemons will notice the fact that wget was run - the network activity can be independently monitored by other tools.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.