tags:

views:

20

answers:

2

Hello,

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

A: 

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 ...
Paul Rubel
Thanks! But what if I dont want logging at all... Not even to logfile
Joel
This isn't writing any logs anywhere. /dev/null is not a regular file, whatever you write there is not really written, so it does not take space and of course cannot be read back.
Jacobo de Vera
Thanks, it works!
Joel
A: 

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/
Alberto Zaccagni
After I run the wget command, a file named "index.php" (which I ran using WGET) is created on my server directory , with the output of the page inside it. I don't want any output, whatsoever... I run this file to do some UPDATES in the database, and need no output of any kind
Joel
Oh ok, now i got it! :D
Alberto Zaccagni