Alex Rivera | Logout

WGET without the log file

Asked 2010-09-23T13:36:33.503
18

Every time I use wget http://www.domain.com a Log file is being saved automatically on my server. is there anyway to run this command without logging?

Thanks,

Joel

Edit
Report

2 Answers

37

You could try -o and -q

-o logfile
   --output-file=logfile
       Log all messages to logfile.  The messages are  
       normally reported to standard error.
-q
 --quiet
     Turn off Wget's output.

So you'd have:

wget ... -q -o /dev/null ...
answered 2010-09-23T13:38:30.830
6

This will print the site contents to the standard output, is this what you mean when you say that you don't want logging to a file?

wget -O - http://www.domain.com/
answered 2010-09-23T13:40:47.220

Your Answer