Cronjob Output


#1

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 http://www.mysite.com


#2

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:

–rlparker


#3

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


#4

Try:
wget -q -O /dev/null http://www.mysite.com

-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.

-Scott