Cronjob Output


Anyone know how to stop WGET in crontab from creating a file on my directory each time it is ran. FTP’d in today and saw a ton of files at my top level directory. Any ideas? Here is my crontab contents:

59 * * * * WGET


Well, that crontab is doing exactly what you are telling it do do with the wget command; it’s “getting” the file (and storing it).

What are you actually trying to accomplish with that cronjob? :wink:



The php file I am calling with WGET runs some site maintenance every hour; clean up DBs, etc.


wget -q -O /dev/null

-q makes it run with no screen output, and -O dumps the content to a file. In this case, /dev/null, which is a black hole.