Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WGET without the log file

Tags:

linux

wget

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

like image 894
Joel Avatar asked Sep 23 '10 13:09

Joel


People also ask

How do I make wget silent?

You can use -nv or --no-verbose to make wget less verbose, but it won't show download progress in that case.

What is wget spider?

The wget tool is essentially a spider that scrapes / leeches web pages but some web hosts may block these spiders with the robots. txt files. Also, wget will not follow links on web pages that use the rel=nofollow attribute. You can however force wget to ignore the robots.

What is the difference between curl and wget?

The main difference between them is that curl will show the output in the console. On the other hand, wget will download it into a file.

What is sudo wget?

Wget is the non-interactive network downloader which is used to download files from the server even when the user has not logged on to the system and it can work in the background without hindering the current process.


1 Answers

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 ...
like image 199
Paul Rubel Avatar answered Oct 16 '22 14:10

Paul Rubel