Cron Creating Lots of Files in Home Directory

This is post is now quite old and the the information it contains may be out of date or innacurate.

If you find any errors or have any suggestions to update the information please let us know or create a pull request on GitHub

If you have some cron jobs set up and you are finding large amounts of files saved in your home directory (or root) then perhaps you have the same issue I had.

I was using wget to call on some PHP scripts to run periodically. wget will do what it says on the tin and save the files. If you don’t want it to do that, you need to add the following in front of your wget command:


-O /dev/null 

eg


wget -O /dev/null http://script.com/script.php


Tags: linuxservercronfileshome directoryrootwget